summaryrefslogtreecommitdiff
path: root/sc/source/core/data/cellvalue.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-04 20:36:54 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-08 15:44:33 -0400
commit6ddcbf4b2fddbb1bad2da05fc6ced1046493d058 (patch)
tree53143b1d163bc0eada9511f991154a9d0e19144b /sc/source/core/data/cellvalue.cxx
parent91159b1c31a7fd474ba0b97828f593604790ce3c (diff)
Slight optimization when copying OUString.
Change-Id: If934e18c0fd68d89d838ca9717aa2e4616bc3b6a
Diffstat (limited to 'sc/source/core/data/cellvalue.cxx')
-rw-r--r--sc/source/core/data/cellvalue.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/cellvalue.cxx b/sc/source/core/data/cellvalue.cxx
index ba71d1ed4693..7a7f94165dd4 100644
--- a/sc/source/core/data/cellvalue.cxx
+++ b/sc/source/core/data/cellvalue.cxx
@@ -163,7 +163,7 @@ ScCellValue::ScCellValue( const ScRefCellValue& rCell ) : meType(rCell.meType),
switch (rCell.meType)
{
case CELLTYPE_STRING:
- mpString = new OUString(*rCell.mpString);
+ mpString = new OUString(rCell.mpString->pData);
break;
case CELLTYPE_EDIT:
mpEditText = rCell.mpEditText->Clone();
@@ -186,7 +186,7 @@ ScCellValue::ScCellValue( const ScCellValue& r ) : meType(r.meType), mfValue(r.m
switch (r.meType)
{
case CELLTYPE_STRING:
- mpString = new OUString(*r.mpString);
+ mpString = new OUString(r.mpString->pData);
break;
case CELLTYPE_EDIT:
mpEditText = r.mpEditText->Clone();
@@ -272,7 +272,7 @@ void ScCellValue::assign( const ScDocument& rDoc, const ScAddress& rPos )
switch (meType)
{
case CELLTYPE_STRING:
- mpString = new OUString(*aRefVal.mpString);
+ mpString = new OUString(aRefVal.mpString->pData);
break;
case CELLTYPE_EDIT:
if (aRefVal.mpEditText)
@@ -297,7 +297,7 @@ void ScCellValue::assign( const ScCellValue& rOther, ScDocument& rDestDoc, int n
switch (meType)
{
case CELLTYPE_STRING:
- mpString = new OUString(*rOther.mpString);
+ mpString = new OUString(rOther.mpString->pData);
break;
case CELLTYPE_EDIT:
{