summaryrefslogtreecommitdiff
path: root/src/test/importtest.cpp
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-07-23 16:34:18 +0200
committerDavid Tardon <dtardon@redhat.com>2015-07-23 16:34:18 +0200
commita548f7e813df966960fe9284602f91a79b0ea7e0 (patch)
treed49da9cb1cc00f8739d762cb7973f41ed957a7d1 /src/test/importtest.cpp
parent379749ebfba4dfee2b73696a62d1c87121fbfc3b (diff)
tdf#92868 fix clang error in test
error: call to function 'operator<<' that is neither visible in the template definition nor found by argument-dependent lookup Change-Id: If0d5018c94870b504083de7c12b20b2c4ad26bdd
Diffstat (limited to 'src/test/importtest.cpp')
-rw-r--r--src/test/importtest.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
index c09bfd8..8554309 100644
--- a/src/test/importtest.cpp
+++ b/src/test/importtest.cpp
@@ -13,15 +13,20 @@
#include <cppunit/extensions/HelperMacros.h>
#include "xmldrawinggenerator.h"
-namespace
+namespace librevenge
{
/// Allows using CPPUNIT_ASSERT_EQUAL() on librevenge::RVNGString instances.
-std::ostream &operator <<(std::ostream &s, const librevenge::RVNGString &string)
+std::ostream &operator <<(std::ostream &s, const RVNGString &string)
{
return s << string.cstr();
}
+}
+
+namespace
+{
+
/// Caller must call xmlXPathFreeObject.
xmlXPathObjectPtr getXPathNode(xmlDocPtr doc, const librevenge::RVNGString &xpath)
{