diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-27 14:18:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-28 08:10:20 +0200 |
commit | 788e9b9f39e2e074a146642be60df4d005018356 (patch) | |
tree | cf8586fa2b6011f323f19350d1762163372afb3e /sc/source/ui/formdlg | |
parent | d9026e13578e6714b2847a9adc0c0563708a0c74 (diff) |
loplugin: cstylecast
Change-Id: Ib0c5e17c9fba4b876b22c2a6d636d4fd19f3a280
Diffstat (limited to 'sc/source/ui/formdlg')
-rw-r--r-- | sc/source/ui/formdlg/formula.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx index 2a294fb2448c..b483bd3dc42e 100644 --- a/sc/source/ui/formdlg/formula.cxx +++ b/sc/source/ui/formdlg/formula.cxx @@ -93,11 +93,11 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW, if ( pDoc == NULL ) pDoc = pViewData->GetDocument(); - m_xParser.set(ScServiceProvider::MakeInstance(SC_SERVICE_FORMULAPARS,(ScDocShell*)pDoc->GetDocumentShell()),uno::UNO_QUERY); + m_xParser.set(ScServiceProvider::MakeInstance(SC_SERVICE_FORMULAPARS, static_cast<ScDocShell*>(pDoc->GetDocumentShell())),uno::UNO_QUERY); uno::Reference< beans::XPropertySet> xSet(m_xParser,uno::UNO_QUERY); xSet->setPropertyValue(OUString(SC_UNO_COMPILEFAP),uno::makeAny(sal_True)); - m_xOpCodeMapper.set(ScServiceProvider::MakeInstance(SC_SERVICE_OPCODEMAPPER,(ScDocShell*)pDoc->GetDocumentShell()),uno::UNO_QUERY); + m_xOpCodeMapper.set(ScServiceProvider::MakeInstance(SC_SERVICE_OPCODEMAPPER, static_cast<ScDocShell*>(pDoc->GetDocumentShell())),uno::UNO_QUERY); ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl(pScViewShell); @@ -263,7 +263,7 @@ bool ScFormulaDlg::IsInputHdl(ScInputHandler* pHdl) SfxViewShell* pSh = SfxViewShell::GetFirst( &aScType ); while ( pSh && !bAlive ) { - if (((ScTabViewShell*)pSh)->GetInputHandler() == pHdl) + if (static_cast<ScTabViewShell*>(pSh)->GetInputHandler() == pHdl) bAlive = true; pSh = SfxViewShell::GetNext( *pSh, &aScType ); } @@ -443,7 +443,7 @@ bool ScFormulaDlg::IsDocAllowed(SfxObjectShell* pDocSh) const { // not allowed: different from this doc, and no name // pDocSh is always a ScDocShell - if ( pDocSh && &((ScDocShell*)pDocSh)->GetDocument() != pDoc && !pDocSh->HasName() ) + if ( pDocSh && &static_cast<ScDocShell*>(pDocSh)->GetDocument() != pDoc && !pDocSh->HasName() ) return false; return true; // everything else is allowed |