qt4/tests/check_fonts.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit 2a25264afe3c59931f6a3638e2d6c6c2e0e5dfba Author: Albert Astals Cid <[email protected]> Date: Fri Oct 19 17:22:56 2012 +0200 make static because i can diff --git a/qt4/tests/check_fonts.cpp b/qt4/tests/check_fonts.cpp index c441632..267595d 100644 --- a/qt4/tests/check_fonts.cpp +++ b/qt4/tests/check_fonts.cpp @@ -19,7 +19,7 @@ private slots: }; -QList<Poppler::FontInfo> loadFontsViaIterator( Poppler::Document *doc, int from = 0, int count = -1 ) +static QList<Poppler::FontInfo> loadFontsViaIterator( Poppler::Document *doc, int from = 0, int count = -1 ) { int num = count == -1 ? doc->numPages() - from : count; QList<Poppler::FontInfo> list; @@ -34,7 +34,7 @@ QList<Poppler::FontInfo> loadFontsViaIterator( Poppler::Document *doc, int from namespace Poppler { -bool operator==( const FontInfo &f1, const FontInfo &f2 ) +static bool operator==( const FontInfo &f1, const FontInfo &f2 ) { if ( f1.name() != f2.name() ) return false; commit bc4a54c0a4430216c9aeaf2c3bddbaeef5a004e4 Author: Albert Astals Cid <[email protected]> Date: Fri Oct 19 17:22:13 2012 +0200 Compile with clang diff --git a/qt4/tests/check_fonts.cpp b/qt4/tests/check_fonts.cpp index c57b6da..c441632 100644 --- a/qt4/tests/check_fonts.cpp +++ b/qt4/tests/check_fonts.cpp @@ -32,7 +32,9 @@ QList<Poppler::FontInfo> loadFontsViaIterator( Poppler::Document *doc, int from return list; } -bool operator==( const Poppler::FontInfo &f1, const Poppler::FontInfo &f2 ) +namespace Poppler +{ +bool operator==( const FontInfo &f1, const FontInfo &f2 ) { if ( f1.name() != f2.name() ) return false; @@ -48,7 +50,7 @@ bool operator==( const Poppler::FontInfo &f1, const Poppler::FontInfo &f2 ) return false; return true; } - +} void TestFontsData::checkNoFonts() { _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
