Kaydet (Commit) 3a5f326c authored tarafından Luboš Luňák's avatar Luboš Luňák

fix operator lookup with clang

I'm not sure if this is clang being more strict or buggy, probably the latter.

Change-Id: I900ba2cd2b1d4c23e41e4787be4263954ce8b4c0
üst 34e53da4
...@@ -73,21 +73,19 @@ private: ...@@ -73,21 +73,19 @@ private:
ScDocShellRef m_xDocShRef; ScDocShellRef m_xDocShRef;
}; };
namespace { static std::ostream& operator<<(std::ostream& rStrm, const ScAddress& rAddr)
std::ostream& operator<<(std::ostream& rStrm, const ScAddress& rAddr)
{ {
rStrm << "Col: " << rAddr.Col() << " Row: " << rAddr.Row() << " Tab: " << rAddr.Tab() << "\n"; rStrm << "Col: " << rAddr.Col() << " Row: " << rAddr.Row() << " Tab: " << rAddr.Tab() << "\n";
return rStrm; 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"; rStrm << "ScRange: " << rRange.aStart << rRange.aEnd << "\n";
return rStrm; return rStrm;
} }
std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList) static std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList)
{ {
rStrm << "ScRangeList: \n"; rStrm << "ScRangeList: \n";
for(size_t i = 0; i < rList.size(); ++i) for(size_t i = 0; i < rList.size(); ++i)
...@@ -95,9 +93,6 @@ std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList) ...@@ -95,9 +93,6 @@ std::ostream& operator<<(std::ostream& rStrm, const ScRangeList& rList)
return rStrm; return rStrm;
} }
}
void Test::setUp() void Test::setUp()
{ {
BootstrapFixture::setUp(); BootstrapFixture::setUp();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment