diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-08 09:51:47 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-08 09:52:49 -0500 |
commit | ab3be69580024da53653e06b34f515bef6ef690e (patch) | |
tree | 68b60222ee51f20938727593496521a57c9cc953 /sc/source/filter/rtf | |
parent | 7d620e26070fda48f91a8ebe0a088224d6d19f75 (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/filter/rtf')
-rw-r--r-- | sc/source/filter/rtf/rtfexp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/filter/rtf/rtfexp.cxx b/sc/source/filter/rtf/rtfexp.cxx index 2af239570361..14c9b21073c0 100644 --- a/sc/source/filter/rtf/rtfexp.cxx +++ b/sc/source/filter/rtf/rtfexp.cxx @@ -188,8 +188,7 @@ void ScRTFExport::WriteCell( SCTAB nTab, SCROW nRow, SCCOL nCol ) { bValueData = false; EditEngine& rEngine = GetEditEngine(); - const EditTextObject* pObj; - ((const ScEditCell*)pCell)->GetData( pObj ); + const EditTextObject* pObj = static_cast<const ScEditCell*>(pCell)->GetData(); if ( pObj ) { rEngine.SetText( *pObj ); |