[Libreoffice-commits] .: Branch 'libreoffice-4-0' - sc/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 26 10:51:30 PST 2012


 sc/qa/unit/rangelst_test.cxx |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 095700d0859178e68d9a54f9efe8011a5d2b9c48
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Dec 26 15:24:25 2012 +0100

    fix operator lookup with clang
    
    I'm not sure if this is clang being more strict or buggy, probably the latter.
    
    Change-Id: I900ba2cd2b1d4c23e41e4787be4263954ce8b4c0

diff --git a/sc/qa/unit/rangelst_test.cxx b/sc/qa/unit/rangelst_test.cxx
index 62d9002..f543175 100644
--- a/sc/qa/unit/rangelst_test.cxx
+++ b/sc/qa/unit/rangelst_test.cxx
@@ -73,21 +73,19 @@ private:
     ScDocShellRef m_xDocShRef;
 };
 
-namespace {
-
-std::ostream& operator<<(std::ostream& rStrm, const ScAddress& rAddr)
+static std::ostream& operator<<(std::ostream& rStrm, const ScAddress& rAddr)
 {
     rStrm << "Col: " << rAddr.Col() << " Row: " << rAddr.Row() << " Tab: " << rAddr.Tab() << "\n";
     return rStrm;
 }
 
-std::ostream& operator<<(std::ostream& rStrm, const ScRange& rRange)
+static std::ostream& operator<<(std::ostream& rStrm, const ScRange& rRange)
 {
     rStrm << "ScRange: " << rRange.aStart << rRange.aEnd << "\n";
     return rStrm;
 }
 
-std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList)
+static std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList)
 {
     rStrm << "ScRangeList: \n";
     for(size_t i = 0; i < rList.size(); ++i)
@@ -95,9 +93,6 @@ std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList)
     return rStrm;
 }
 
-}
-
-
 void Test::setUp()
 {
     BootstrapFixture::setUp();


More information about the Libreoffice-commits mailing list