[Libreoffice-commits] libvisio.git: src/test

David Tardon dtardon at redhat.com
Thu Jul 23 07:36:42 PDT 2015


 src/test/importtest.cpp |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit a548f7e813df966960fe9284602f91a79b0ea7e0
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Jul 23 16:34:18 2015 +0200

    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

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)
 {


More information about the Libreoffice-commits mailing list