[Libreoffice-commits] .: sdext/source

Lubos Lunak llunak at kemper.freedesktop.org
Sat Mar 10 13:59:33 PST 2012


 sdext/source/pdfimport/test/tests.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit df6097ab4fc7008997caa93fb6674b1e2599e227
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Sat Mar 10 22:27:38 2012 +0100

    operator must be in template or argument namespace
    
    clang has more strict (and probably more spec compliant) lookup

diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx
index a98600c..d3fa3e7 100644
--- a/sdext/source/pdfimport/test/tests.cxx
+++ b/sdext/source/pdfimport/test/tests.cxx
@@ -87,15 +87,18 @@ using namespace ::pdfparse;
 using namespace ::pdfi;
 using namespace ::com::sun::star;
 
-namespace
+namespace rtl
 {
-
     template< typename charT, typename traits > std::basic_ostream<charT, traits> &
         operator <<(
                 std::basic_ostream<charT, traits> & stream, rtl::OString const & string)
         {
             return stream << string.getStr();
         }
+}
+
+namespace
+{
 
     class TestSink : public ContentSink
     {


More information about the Libreoffice-commits mailing list