diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-07 17:27:02 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 15:48:10 -0400 |
commit | 658fc68d574bd49b8b233ad5ed886758e290b3aa (patch) | |
tree | b1acc482e6b8a8aac78e729b1ea0419aea4df607 /sc/source/ui/undo | |
parent | ee8fad644e28d1e298afb7c6eed4d454617e7dc7 (diff) |
Store svl::SharedString in document cell storage instead of OUString.
With this, both ScColumn and ScMatrix store svl::SharedString as their
string values, instead of OUString.
Change-Id: I3faece94d98f774881fd72b3ed5f6143504cd350
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/undocell.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index bdecc941d79b..807875944c19 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.cxx @@ -17,13 +17,15 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include "undocell.hxx" + #include "scitems.hxx" #include <editeng/eeitem.hxx> #include <editeng/editobj.hxx> #include <svl/zforlist.hxx> +#include "svl/sharedstringpool.hxx" #include <sfx2/app.hxx> -#include "undocell.hxx" #include "document.hxx" #include "docpool.hxx" #include "patattr.hxx" @@ -481,7 +483,7 @@ void ScUndoSetCell::SetValue( const ScCellValue& rVal ) { ScSetStringParam aParam; aParam.setTextInput(); - pDoc->SetString(maPos, *rVal.mpString); + pDoc->SetString(maPos, rVal.mpString->getString()); } break; case CELLTYPE_EDIT: @@ -668,7 +670,7 @@ ScUndoThesaurus::ScUndoThesaurus( ScDocShell* pNewDocShell, else { aOldCell.meType = CELLTYPE_STRING; - aOldCell.mpString = new OUString(aUndoStr); + aOldCell.mpString = new svl::SharedString(pDocShell->GetDocument()->GetCellStringPool().intern(aUndoStr)); } SetChangeTrack(aOldCell); } |