summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:24:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:24:35 +0200
commit1cb4a7554a21952a323f3e2bbf533b005daf4d00 (patch)
treec55ed5741d6c0fc6172320f768b4a6b012ec8372 /desktop/source
parent85380260003dd481b97436adb14daf08ffd897c3 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I897ebb00ce427a00f1d9b0c199d465bb0ac80309
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx4
-rw-r--r--desktop/source/migration/services/wordbookmigration.cxx2
-rw-r--r--desktop/source/splash/unxsplash.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index fb98cdd6bf15..2bea724819c0 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -672,7 +672,7 @@ void DialogHelper::PostUserEvent( const Link<>& rLink, void* pCaller, bool bRefe
// ExtMgrDialog
ExtMgrDialog::ExtMgrDialog(vcl::Window *pParent, TheExtensionManager *pManager, Dialog::InitFlag eFlag)
: ModelessDialog(pParent, "ExtensionManagerDialog", "desktop/ui/extensionmanager.ui", eFlag)
- , DialogHelper(pManager->getContext(), (Dialog*) this)
+ , DialogHelper(pManager->getContext(), static_cast<Dialog*>(this))
, m_sAddPackages(getResourceString(RID_STR_ADD_PACKAGES))
, m_bHasProgress(false)
, m_bProgressChanged(false)
@@ -1183,7 +1183,7 @@ bool ExtMgrDialog::Close()
//UpdateRequiredDialog
UpdateRequiredDialog::UpdateRequiredDialog(vcl::Window *pParent, TheExtensionManager *pManager)
: ModalDialog(pParent, "UpdateRequiredDialog", "desktop/ui/updaterequireddialog.ui")
- , DialogHelper(pManager->getContext(), (Dialog*) this)
+ , DialogHelper(pManager->getContext(), static_cast<Dialog*>(this))
, m_sAddPackages(getResourceString(RID_STR_ADD_PACKAGES))
, m_sCloseText(getResourceString(RID_STR_CLOSE_BTN))
, m_bHasProgress(false)
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index 6870450fc559..0f4427ce8bde 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -159,7 +159,7 @@ bool IsUserWordbook( const OUString& rFile )
static sal_Size nVerOOo7Len = sal::static_int_cast< sal_Size >(strlen( pVerOOo7 ));
sal_Char pMagicHeader[MAX_HEADER_LENGTH];
pMagicHeader[ nVerOOo7Len ] = '\0';
- if ((pStream->Read((void *) pMagicHeader, nVerOOo7Len) == nVerOOo7Len))
+ if ((pStream->Read(static_cast<void *>(pMagicHeader), nVerOOo7Len) == nVerOOo7Len))
{
if ( !strcmp(pMagicHeader, pVerOOo7) )
bRet = true;
diff --git a/desktop/source/splash/unxsplash.cxx b/desktop/source/splash/unxsplash.cxx
index c41f233227cb..6e4fe71ace0a 100644
--- a/desktop/source/splash/unxsplash.cxx
+++ b/desktop/source/splash/unxsplash.cxx
@@ -148,7 +148,7 @@ uno::Reference< uno::XInterface > UnxSplash_createInstance(const uno::Reference<
{
osl::MutexGuard guard( m_aMutex );
if ( !m_xINSTANCE.is() )
- m_xINSTANCE = (cppu::OWeakObject*) new UnxSplashScreen( xCtx );
+ m_xINSTANCE = static_cast<cppu::OWeakObject*>(new UnxSplashScreen( xCtx ));
}
return m_xINSTANCE;