diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:06:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:06:11 +0100 |
commit | edc19f0400e7cac09a59291b8ed6c6c13f48468e (patch) | |
tree | 4d0ab93ec79baa2e32a3541c18d3a5099e77c571 /desktop/source/lib/lokinteractionhandler.cxx | |
parent | 856b938afd1a7dc66cb079b1b70fd90d1634c177 (diff) |
More loplugin:cstylecast: desktop
Change-Id: Ie03ac7c1a347389b804ff4d90982cdaf771e72dc
Diffstat (limited to 'desktop/source/lib/lokinteractionhandler.cxx')
-rw-r--r-- | desktop/source/lib/lokinteractionhandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |