Author: rleigh
Date: Wed Jun 14 21:21:57 2017
New Revision: 1798763
URL: http://svn.apache.org/viewvc?rev=1798763&view=rev
Log:
tests: MemoryMonitor: Remove unused variable
Modified:
xerces/c/trunk/tests/src/MemHandlerTest/MemoryMonitor.cpp
Modified: xerces/c/trunk/tests/src/MemHandlerTest/MemoryMonitor.cpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/tests/src/MemHandlerTest/MemoryMonitor.cpp?rev=1798763&r1=1798762&r2=1798763&view=diff
==============================================================================
--- xerces/c/trunk/tests/src/MemHandlerTest/MemoryMonitor.cpp (original)
+++ xerces/c/trunk/tests/src/MemHandlerTest/MemoryMonitor.cpp Wed Jun 14
21:21:57 2017
@@ -382,7 +382,9 @@ int main (int argC, char *argV[])
DOMTreeWalker*
pWalker=doc->createTreeWalker(doc->getDocumentElement(),
DOMNodeFilter::SHOW_TEXT, NULL, true);
DOMText* textNode=(DOMText*)pWalker->nextNode();
pWalker->release();
- const XMLCh*
txt=(textNode!=NULL?textNode->getWholeText():NULL);
+ // this isn't stored or used, but might throw as part of
the test?
+ if (textNode!=NULL)
+ textNode->getWholeText();
}
sax2parser->parse(xmlFile);
saxParser->parse(xmlFile);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]