From 3a5f326c7553fac3d9741b2d99f720461289f81e Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 26 Dec 2012 15:24:25 +0100 Subject: fix operator lookup with clang I'm not sure if this is clang being more strict or buggy, probably the latter. Change-Id: I900ba2cd2b1d4c23e41e4787be4263954ce8b4c0 --- sc/qa/unit/rangelst_test.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sc/qa') diff --git a/sc/qa/unit/rangelst_test.cxx b/sc/qa/unit/rangelst_test.cxx index 62d9002af503..f5431755ac3f 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(); -- cgit