diff options
author | Luke Dixon <6b8b4567@gmail.com> | 2010-11-24 17:06:10 +0000 |
---|---|---|
committer | Jonas Finnemann Jensen <jopsen@gmail.com> | 2010-11-27 13:57:46 +0100 |
commit | 1afc000284f6fb6e6a9e73a8dbf7799e45bccf65 (patch) | |
tree | 70e6e1db832a6d356b8368f94555ee02350a4ff3 /starmath | |
parent | 115b0f5178b2fce00d76db135f644ea7b50c09b1 (diff) |
Fix a leak & remove leftover cout that I missed
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/qa/cppunit/test_nodetotextvisitors.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx index 93def143cf3d..cd8aee022a83 100644 --- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx +++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx @@ -5,9 +5,6 @@ #include "sal/config.h" -#include <iostream> -using namespace std; - #include <cppuhelper/bootstrap.hxx> #include <comphelper/processfactory.hxx> #include <cppunit/TestAssert.h> @@ -41,7 +38,6 @@ struct assertion_traits<String> std::string text = ByteString(x, RTL_TEXTENCODING_UTF8).GetBuffer(); OStringStream ost; ost << text; - cout << ost.str(); return ost.str(); } }; @@ -453,6 +449,9 @@ void Test::parseandparseagain(const char *formula, const char *test_name) CPPUNIT_ASSERT_EQUAL_MESSAGE(test_name, output1, output2); + + delete pNode1; + delete pNode2; } CPPUNIT_TEST_SUITE_REGISTRATION(Test); |