summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:30 +0100
commit7aff8f8e16b8087b57161446b133c4a883a14c66 (patch)
tree7f4edd1109894fb83e492cb3c5aa0af31dd27262 /uui
parent1a19ee6eb28e53b7f338c9a9f031a6dcc324a48e (diff)
More loplugin:cstylecast: uui
Change-Id: Icac6a57c85daec6b9ca876116c8b4b46e997805d
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-authentication.cxx2
-rw-r--r--uui/source/iahndl-ioexceptions.cxx16
-rw-r--r--uui/source/iahndl.cxx2
3 files changed, 10 insertions, 10 deletions
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx
index 14f4425958b7..12ed4ed7aff9 100644
--- a/uui/source/iahndl-authentication.cxx
+++ b/uui/source/iahndl-authentication.cxx
@@ -159,7 +159,7 @@ void getRememberModes(
bHasRememberModePersistent = true;
break;
default:
- SAL_WARN( "uui", "Unsupported RememberAuthentication value" << (sal_Int32)rRememberModes[i] );
+ SAL_WARN( "uui", "Unsupported RememberAuthentication value" << static_cast<sal_Int32>(rRememberModes[i]) );
break;
}
}
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;
}
}
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 51af635a24bf..3d9d331476e6 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -1001,7 +1001,7 @@ NameClashResolveDialogResult executeSimpleNameClashResolveDialog( vcl::Window *p
ScopedVclPtrInstance<NameClashDialog> aDialog(pParent, aResLocale, rTargetFolderURL,
rClashingName, rProposedNewName, bAllowOverwrite);
- NameClashResolveDialogResult eResult = (NameClashResolveDialogResult) aDialog->Execute();
+ NameClashResolveDialogResult eResult = static_cast<NameClashResolveDialogResult>(aDialog->Execute());
rProposedNewName = aDialog->getNewName();
return eResult;
}