summaryrefslogtreecommitdiff
path: root/sc/qa/unit/rangelst_test.cxx
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 19:51:07 +0100
commit095700d0859178e68d9a54f9efe8011a5d2b9c48 (patch)
treec1babd78873c4a3fdbf05fdbe889b61fb39b5525 /sc/qa/unit/rangelst_test.cxx
parenta97bf2e3bc43a709eb72bdc695f96aeecf1174b1 (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/unit/rangelst_test.cxx')
-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();