summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-01-08 09:51:47 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-01-08 09:52:49 -0500
commitab3be69580024da53653e06b34f515bef6ef690e (patch)
tree68b60222ee51f20938727593496521a57c9cc953 /sc/source/ui/app
parent7d620e26070fda48f91a8ebe0a088224d6d19f75 (diff)
Let's not have two variants of this getter. One is enough.
And let's stick with the one that returns the data pointer. Change-Id: I931be0d73adcf6f3888d05ef58bc0f905f5a6958
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/transobj.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 3560ac1f1906..e8a96c51cf74 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -271,8 +271,7 @@ sal_Bool ScTransferObj::GetData( const datatransfer::DataFlavor& rFlavor )
{
if (pCell->GetCellType() == CELLTYPE_EDIT)
{
- const EditTextObject* pObj;
- ((ScEditCell*)pCell)->GetData(pObj);
+ const EditTextObject* pObj = static_cast<const ScEditCell*>(pCell)->GetData();
aEngine.SetText( *pObj );
}
else