diff options
author | David Tardon <dtardon@redhat.com> | 2015-07-23 16:34:18 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-07-23 16:34:18 +0200 |
commit | a548f7e813df966960fe9284602f91a79b0ea7e0 (patch) | |
tree | d49da9cb1cc00f8739d762cb7973f41ed957a7d1 /src/test/importtest.cpp | |
parent | 379749ebfba4dfee2b73696a62d1c87121fbfc3b (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.cpp | 9 |
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) { |