summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen8.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-27 09:45:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-27 09:45:58 +0000
commit906e35f80a17d51c305e0db251e6224f5dd23d52 (patch)
treeeb1b62e54748e6fd62be8cab9dcf8735baa7f9e3 /sc/source/core/data/documen8.cxx
parent84fa063b4ce1bd6a8996c20c89e238ee38bcdcfe (diff)
merge GetString variants
Diffstat (limited to 'sc/source/core/data/documen8.cxx')
-rw-r--r--sc/source/core/data/documen8.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 021274554ecc..9e207c7c93db 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -726,8 +726,7 @@ bool ScDocument::OnlineSpellInRange( const ScRange& rSpellRange, ScAddress& rSpe
if ( eType == CELLTYPE_STRING )
{
- rtl::OUString aText;
- static_cast<ScStringCell*>(pCell)->GetString(aText);
+ rtl::OUString aText = static_cast<ScStringCell*>(pCell)->GetString();
pEngine->SetText( aText );
}
else
@@ -1595,8 +1594,7 @@ void ScDocument::TransliterateText( const ScMarkData& rMultiMark, sal_Int32 nTyp
else if ( eType == CELLTYPE_STRING )
{
- rtl::OUString aOldStr;
- ((const ScStringCell*)pCell)->GetString(aOldStr);
+ rtl::OUString aOldStr = ((const ScStringCell*)pCell)->GetString();
sal_Int32 nOldLen = aOldStr.getLength();
if ( bConsiderLanguage )