[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/inc sc/source
Kohei Yoshida
kohei.yoshida at gmail.com
Tue Mar 26 13:42:31 PDT 2013
sc/inc/dociter.hxx | 2 +-
sc/source/core/data/dociter.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9749a706fdea2ee0519870ef5d58a78f4fbf33bd
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Tue Mar 26 16:44:45 2013 -0400
This can return const reference.
Change-Id: I1cf3e58167b883fee1b8cb32783a7892f6e0faa5
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index 4f3ab26..acb31e2 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 adb7787..87b832d 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;
}
More information about the Libreoffice-commits
mailing list