diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-26 16:44:45 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-27 00:07:14 -0400 |
commit | 3594cfd585d221e5d3cea553a8b5fed32e97ca50 (patch) | |
tree | 717cd34c994b597167f8ebafa4fb895ef624a97a /sc | |
parent | kill some unused inlines (diff) | |
download | core-3594cfd585d221e5d3cea553a8b5fed32e97ca50.tar.gz core-3594cfd585d221e5d3cea553a8b5fed32e97ca50.zip |
This can return const reference.
Change-Id: I1cf3e58167b883fee1b8cb32783a7892f6e0faa5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/dociter.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/dociter.cxx | 2 |
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; } |