summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:11 +0100
commitedc19f0400e7cac09a59291b8ed6c6c13f48468e (patch)
tree4d0ab93ec79baa2e32a3541c18d3a5099e77c571 /desktop
parent856b938afd1a7dc66cb079b1b70fd90d1634c177 (diff)
More loplugin:cstylecast: desktop
Change-Id: Ie03ac7c1a347389b804ff4d90982cdaf771e72dc
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx2
-rw-r--r--desktop/source/lib/lokinteractionhandler.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 8d0c39d23a03..d1c16ea2007a 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -272,7 +272,7 @@ MENU_COMMAND ExtBoxWithBtns_Impl::ShowPopupMenu( const Point & rPos, const long
if ( !GetEntryData( nPos )->m_sLicenseText.isEmpty() )
aPopup->InsertItem( CMD_SHOW_LICENSE, DpResId( RID_STR_SHOW_LICENSE_CMD ) );
- return (MENU_COMMAND) aPopup->Execute( this, rPos );
+ return static_cast<MENU_COMMAND>(aPopup->Execute( this, rPos ));
}
diff --git a/desktop/source/lib/lokinteractionhandler.cxx b/desktop/source/lib/lokinteractionhandler.cxx
index 8c77471eb4be..1baf274b386b 100644
--- a/desktop/source/lib/lokinteractionhandler.cxx
+++ b/desktop/source/lib/lokinteractionhandler.cxx
@@ -146,7 +146,7 @@ bool LOKInteractionHandler::handleIOException(const css::uno::Sequence<css::uno:
if (!(rRequest >>= aIoException))
return false;
- static ErrCode const aErrorCode[(int)ucb::IOErrorCode_WRONG_VERSION + 1] =
+ static ErrCode const aErrorCode[int(ucb::IOErrorCode_WRONG_VERSION) + 1] =
{
ERRCODE_IO_ABORT,
ERRCODE_IO_ACCESSDENIED,
@@ -186,7 +186,7 @@ bool LOKInteractionHandler::handleIOException(const css::uno::Sequence<css::uno:
ERRCODE_IO_WRONGVERSION,
};
- postError(aIoException.Classification, "io", aErrorCode[(int)aIoException.Code], "");
+ postError(aIoException.Classification, "io", aErrorCode[static_cast<int>(aIoException.Code)], "");
selectApproved(rContinuations);
return true;