Kaydet (Commit) 6a8c781d authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add debug output operator<< for ScRangeList

Change-Id: I55f16428bbadd45d302ac31df9c1a691730c4a49
Reviewed-on: https://gerrit.libreoffice.org/45158Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 07027b5b
......@@ -22,6 +22,7 @@
#include "global.hxx"
#include "address.hxx"
#include <ostream>
#include <vector>
#include <sal/types.h>
......@@ -100,6 +101,22 @@ private:
};
typedef tools::SvRef<ScRangeList> ScRangeListRef;
// For use in SAL_DEBUG etc. Output format not guaranteed to be stable.
template<typename charT, typename traits>
inline std::basic_ostream<charT, traits> & operator <<(std::basic_ostream<charT, traits> & stream, const ScRangeList& rRangeList)
{
stream << "(";
for (size_t i = 0; i < rRangeList.size(); ++i)
{
if (i > 0)
stream << ",";
stream << *(rRangeList[i]);
}
stream << ")";
return stream;
}
// RangePairList:
// aRange[0]: actual range,
// aRange[1]: data for that range, e.g. Rows belonging to a ColName
......
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