summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-26 16:44:45 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-27 00:07:14 -0400
commit3594cfd585d221e5d3cea553a8b5fed32e97ca50 (patch)
tree717cd34c994b597167f8ebafa4fb895ef624a97a
parent646daee253b69404591c006ec6e717b6660af30b (diff)
This can return const reference.
Change-Id: I1cf3e58167b883fee1b8cb32783a7892f6e0faa5
-rw-r--r--sc/inc/dociter.hxx2
-rw-r--r--sc/source/core/data/dociter.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index 4f3ab2621d7c..acb31e2373ff 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -239,7 +239,7 @@ public:
const ScFormulaCell* getFormulaCell() const;
double getValue() const;
ScCellValue getCellValue() const;
- ScRefCellValue getRefCellValue() const;
+ const ScRefCellValue& getRefCellValue() const;
bool hasString() const;
bool hasNumeric() const;
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index adb7787672d1..87b832da30a1 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -1131,7 +1131,7 @@ ScCellValue ScCellIterator::getCellValue() const
return aRet;
}
-ScRefCellValue ScCellIterator::getRefCellValue() const
+const ScRefCellValue& ScCellIterator::getRefCellValue() const
{
return maCurCell;
}