[Libreoffice-commits] .: 2 commits - starmath/qa
Jonas Finnemann Jensen
jopsen at kemper.freedesktop.org
Sat Nov 27 05:03:35 PST 2010
starmath/qa/cppunit/test_nodetotextvisitors.cxx | 33 +++++++++++++++++++++---
1 file changed, 29 insertions(+), 4 deletions(-)
New commits:
commit b9e02b2831a8424a13a8e04ccd4b1a2a7e30fb89
Author: Luke Dixon <6b8b4567 at gmail.com>
Date: Thu Nov 25 14:26:18 2010 +0000
Add license header to test_nodetotextvisitors.cxx
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index cd8aee0..45386d1 100644
--- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx
+++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
@@ -1,4 +1,30 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Initial Developer of the Original Code is
+ * Luke Dixon <6b8b4567 at gmail.com>
+ * Portions created by the Initial Developer are Copyright (C) 2010 the
+ * Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_starmath.hxx"
commit 761a496053e0474d3bbac28675b09dd7c3ab825d
Author: Luke Dixon <6b8b4567 at gmail.com>
Date: Wed Nov 24 17:06:10 2010 +0000
Fix a leak & remove leftover cout that I missed
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index 93def14..cd8aee0 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);
More information about the Libreoffice-commits
mailing list