summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-26 15:24:25 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-26 15:25:17 +0100
commit3a5f326c7553fac3d9741b2d99f720461289f81e (patch)
tree93311b15a12d7faf8234ed2a8799550756cac916 /sc/qa
parent34e53da47bee5c1799339e8e550662d55f01555a (diff)
fix operator lookup with clang
I'm not sure if this is clang being more strict or buggy, probably the latter. Change-Id: I900ba2cd2b1d4c23e41e4787be4263954ce8b4c0
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/rangelst_test.cxx11
1 files changed, 3 insertions, 8 deletions
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();