[Libreoffice-commits] core.git: sc/inc sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Fri Jul 18 13:03:23 PDT 2014
sc/inc/cellvalue.hxx | 1 +
sc/source/core/data/cellvalue.cxx | 7 +++++++
2 files changed, 8 insertions(+)
New commits:
commit ae56b364d29f10ef311a070627488838d0deaba5
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Fri Jul 18 14:58:56 2014 -0400
Add a variant of set that takes ownership of EditTextObject.
Change-Id: If5f9122213d2f35aabcc66ca70c3d432120995cc
diff --git a/sc/inc/cellvalue.hxx b/sc/inc/cellvalue.hxx
index 9f6aa8b..9154e30 100644
--- a/sc/inc/cellvalue.hxx
+++ b/sc/inc/cellvalue.hxx
@@ -52,6 +52,7 @@ struct SC_DLLPUBLIC ScCellValue
void set( double fValue );
void set( const svl::SharedString& rStr );
void set( const EditTextObject& rEditText );
+ void set( EditTextObject* pEditText );
void set( ScFormulaCell* pFormula );
/**
diff --git a/sc/source/core/data/cellvalue.cxx b/sc/source/core/data/cellvalue.cxx
index 797b59e..b9eb32b 100644
--- a/sc/source/core/data/cellvalue.cxx
+++ b/sc/source/core/data/cellvalue.cxx
@@ -291,6 +291,13 @@ void ScCellValue::set( const EditTextObject& rEditText )
mpEditText = rEditText.Clone();
}
+void ScCellValue::set( EditTextObject* pEditText )
+{
+ clear();
+ meType = CELLTYPE_EDIT;
+ mpEditText = pEditText;
+}
+
void ScCellValue::set( ScFormulaCell* pFormula )
{
clear();
More information about the Libreoffice-commits
mailing list