diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:01:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:01:30 +0100 |
commit | 7aff8f8e16b8087b57161446b133c4a883a14c66 (patch) | |
tree | 7f4edd1109894fb83e492cb3c5aa0af31dd27262 /uui/source/iahndl-ioexceptions.cxx | |
parent | 1a19ee6eb28e53b7f338c9a9f031a6dcc324a48e (diff) |
More loplugin:cstylecast: uui
Change-Id: Icac6a57c85daec6b9ca876116c8b4b46e997805d
Diffstat (limited to 'uui/source/iahndl-ioexceptions.cxx')
-rw-r--r-- | uui/source/iahndl-ioexceptions.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/uui/source/iahndl-ioexceptions.cxx b/uui/source/iahndl-ioexceptions.cxx index 737288e382c9..bd85abbdcb1e 100644 --- a/uui/source/iahndl-ioexceptions.cxx +++ b/uui/source/iahndl-ioexceptions.cxx @@ -109,7 +109,7 @@ UUIInteractionHelper::handleInteractiveIOException( ErrCode nErrorCode; std::vector< OUString > aArguments; static ErrCode const - aErrorCode[(sal_Int32)ucb::IOErrorCode_WRONG_VERSION + 1][2] + aErrorCode[sal_Int32(ucb::IOErrorCode_WRONG_VERSION) + 1][2] = { { ERRCODE_IO_ABORT, ERRCODE_UUI_IO_ABORT }, // ABORT { ERRCODE_IO_ACCESSDENIED, ERRCODE_UUI_IO_ACCESSDENIED }, // ACCESS_DENIED @@ -201,7 +201,7 @@ UUIInteractionHelper::handleInteractiveIOException( } } else - nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; + nErrorCode = aErrorCode[static_cast<sal_Int32>(aIoException.Code)][0]; break; } @@ -225,7 +225,7 @@ UUIInteractionHelper::handleInteractiveIOException( aArguments.push_back(aArgUri); } else - nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; + nErrorCode = aErrorCode[static_cast<sal_Int32>(aIoException.Code)][0]; break; } @@ -237,13 +237,13 @@ UUIInteractionHelper::handleInteractiveIOException( && getStringRequestArgument(aRequestArguments, "OtherVolume", &aArgOtherVolume)) { - nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][1]; + nErrorCode = aErrorCode[static_cast<sal_Int32>(aIoException.Code)][1]; aArguments.reserve(2); aArguments.push_back(aArgVolume); aArguments.push_back(aArgOtherVolume); } else - nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; + nErrorCode = aErrorCode[static_cast<sal_Int32>(aIoException.Code)][0]; break; } @@ -264,7 +264,7 @@ UUIInteractionHelper::handleInteractiveIOException( aArguments.push_back(aArgUri); } else - nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; + nErrorCode = aErrorCode[static_cast<sal_Int32>(aIoException.Code)][0]; break; } @@ -274,11 +274,11 @@ UUIInteractionHelper::handleInteractiveIOException( if (getResourceNameRequestArgument(aRequestArguments, &aArgUri)) { - nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][1]; + nErrorCode = aErrorCode[static_cast<sal_Int32>(aIoException.Code)][1]; aArguments.push_back(aArgUri); } else - nErrorCode = aErrorCode[(sal_Int32)aIoException.Code][0]; + nErrorCode = aErrorCode[static_cast<sal_Int32>(aIoException.Code)][0]; break; } } |