summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/MasterPageContainer.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:43 +0100
commitabf7b94123a555c4f3e90a0ae41bd7a842d1c1fb (patch)
tree6e0208e0450308652be1a0a512f98023b35ca489 /sd/source/ui/sidebar/MasterPageContainer.cxx
parentb271fb5ba1a8f7da2120d7037de087b02eb16c91 (diff)
More loplugin:cstylecast: sd
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I144975b94fe2725ac740a953ca2133e99f8a3fce
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageContainer.cxx')
-rw-r--r--sd/source/ui/sidebar/MasterPageContainer.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx
index 1e13ccf9493c..48deb2505e4e 100644
--- a/sd/source/ui/sidebar/MasterPageContainer.cxx
+++ b/sd/source/ui/sidebar/MasterPageContainer.cxx
@@ -683,14 +683,14 @@ MasterPageContainer::Token MasterPageContainer::Implementation::PutMasterPage (
bool MasterPageContainer::Implementation::HasToken (Token aToken) const
{
return aToken>=0
- && (unsigned)aToken<maContainer.size()
+ && static_cast<unsigned>(aToken)<maContainer.size()
&& maContainer[aToken].get()!=nullptr;
}
const SharedMasterPageDescriptor MasterPageContainer::Implementation::GetDescriptor (
Token aToken) const
{
- if (aToken>=0 && (unsigned)aToken<maContainer.size())
+ if (aToken>=0 && static_cast<unsigned>(aToken)<maContainer.size())
return maContainer[aToken];
else
return SharedMasterPageDescriptor();
@@ -698,7 +698,7 @@ const SharedMasterPageDescriptor MasterPageContainer::Implementation::GetDescrip
SharedMasterPageDescriptor MasterPageContainer::Implementation::GetDescriptor (Token aToken)
{
- if (aToken>=0 && (unsigned)aToken<maContainer.size())
+ if (aToken>=0 && static_cast<unsigned>(aToken)<maContainer.size())
return maContainer[aToken];
else
return SharedMasterPageDescriptor();
@@ -850,7 +850,7 @@ Reference<frame::XModel> MasterPageContainer::Implementation::GetModel()
if (xProperties.is())
xProperties->setPropertyValue(
"Layout",
- makeAny((sal_Int16)AUTOLAYOUT_TITLE));
+ makeAny(sal_Int16(AUTOLAYOUT_TITLE)));
}
}
}
@@ -978,7 +978,7 @@ bool MasterPageContainer::Implementation::UpdateDescriptor (
void MasterPageContainer::Implementation::ReleaseDescriptor (Token aToken)
{
- if (aToken>=0 && (unsigned)aToken<maContainer.size())
+ if (aToken>=0 && static_cast<unsigned>(aToken)<maContainer.size())
{
maContainer[aToken].reset();
}