From ff0e6c53782196fe1fc223ae08964a34eb20f740 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 13 Sep 2012 23:03:38 -0400 Subject: Fix the order of template arguments. Change-Id: Ibcc54168a6ca36cc57dd1b838e002f9a10ff29f3 --- sc/source/core/tool/rangelst.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sc') diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index f9e57b720599..7ad721203e34 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -48,7 +48,7 @@ using ::formula::FormulaGrammar; namespace { template -class FindEnclosingRange : public ::std::unary_function +class FindEnclosingRange : public ::std::unary_function { public: FindEnclosingRange(const T& rTest) : mrTest(rTest) {} @@ -62,7 +62,7 @@ private: }; template -class FindRangeIn : public ::std::unary_function +class FindRangeIn : public ::std::unary_function { public: FindRangeIn(const T& rTest) : mrTest(rTest) {} @@ -76,7 +76,7 @@ private: }; template -class FindIntersectingRange : public ::std::unary_function +class FindIntersectingRange : public ::std::unary_function { public: FindIntersectingRange(const T& rTest) : mrTest(rTest) {} @@ -89,7 +89,7 @@ private: const T& mrTest; }; -class AppendToList : public ::std::unary_function +class AppendToList : public ::std::unary_function { public: AppendToList(vector& rRanges) : mrRanges(rRanges) {} @@ -102,7 +102,7 @@ private: vector& mrRanges; }; -class CountCells : public ::std::unary_function +class CountCells : public ::std::unary_function { public: CountCells() : mnCellCount(0) {} @@ -122,7 +122,7 @@ private: size_t mnCellCount; }; -class FormatString : public ::std::unary_function +class FormatString : public ::std::unary_function { public: FormatString(String& rStr, sal_uInt16 nFlags, ScDocument* pDoc, FormulaGrammar::AddressConvention eConv, sal_Unicode cDelim) : @@ -160,15 +160,15 @@ private: bool mbFirst; }; -class FindDeletedRange : public ::std::unary_function +class FindDeletedRange : public ::std::unary_function { public: FindDeletedRange( SCsCOL nDx, SCsROW nDy): mnDx(nDx), mnDy(nDy) {} FindDeletedRange( const FindDeletedRange& r) : mnDx(r.mnDx), mnDy(r.mnDy) {} bool operator() (const ScRange* p) { - ScAddress rStart = p->aStart; - ScAddress rEnd = p->aEnd; + const ScAddress& rStart = p->aStart; + const ScAddress& rEnd = p->aEnd; if( rEnd.Col() +mnDx < rStart.Col() ) return true; -- cgit