summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/scendlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-27 14:18:17 +0200
committerNoel Grandin <noel@peralex.com>2014-10-28 08:10:20 +0200
commitd9026e13578e6714b2847a9adc0c0563708a0c74 (patch)
treebc3f5e0cd877e4d7a303686ee7087f26e49befd0 /sc/source/ui/dbgui/scendlg.cxx
parent1e21c77561b802bae4cb84631614f8aa612785a6 (diff)
loplugin: cstylecast
Change-Id: I47adf8a3fc72b4a043724ac40f3637b8dc3878be
Diffstat (limited to 'sc/source/ui/dbgui/scendlg.cxx')
-rw-r--r--sc/source/ui/dbgui/scendlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/scendlg.cxx b/sc/source/ui/dbgui/scendlg.cxx
index 8c210054bc23..cd2b3a750fde 100644
--- a/sc/source/ui/dbgui/scendlg.cxx
+++ b/sc/source/ui/dbgui/scendlg.cxx
@@ -64,7 +64,7 @@ ScNewScenarioDlg::ScNewScenarioDlg( vcl::Window* pParent, const OUString& rName,
const SfxPoolItem* pItem = pDocSh->GetItem( SID_COLOR_TABLE );
if ( pItem )
{
- XColorListRef pColorList = ((SvxColorListItem*)pItem)->GetColorList();
+ XColorListRef pColorList = static_cast<const SvxColorListItem*>(pItem)->GetColorList();
if (pColorList.is())
{
m_pLbColor->SetUpdateMode( false );
@@ -147,7 +147,7 @@ void ScNewScenarioDlg::SetScenarioData( const OUString& rName, const OUString& r
IMPL_LINK_NOARG(ScNewScenarioDlg, OkHdl)
{
OUString aName = comphelper::string::strip(m_pEdName->GetText(), ' ');
- ScDocument* pDoc = ((ScTabViewShell*)SfxViewShell::Current())->GetViewData().GetDocument();
+ ScDocument* pDoc = static_cast<ScTabViewShell*>(SfxViewShell::Current())->GetViewData().GetDocument();
m_pEdName->SetText( aName );