summaryrefslogtreecommitdiff
path: root/sdext/source/presenter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:33 +0100
commitb271fb5ba1a8f7da2120d7037de087b02eb16c91 (patch)
tree74f5c2f1a419311097eaa9c474f3e1a69fed7efe /sdext/source/presenter
parent48db069fd7341ad8128d0e9a5fbcc5b092fe9860 (diff)
More loplugin:cstylecast: sdext
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: Ie9eca6a78912a62f5a46ecacb1da052621c79ea4
Diffstat (limited to 'sdext/source/presenter')
-rw-r--r--sdext/source/presenter/PresenterConfigurationAccess.cxx2
-rw-r--r--sdext/source/presenter/PresenterNotesView.cxx2
-rw-r--r--sdext/source/presenter/PresenterScrollBar.cxx2
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/sdext/source/presenter/PresenterConfigurationAccess.cxx b/sdext/source/presenter/PresenterConfigurationAccess.cxx
index a000eb9279dc..7855179b2d4c 100644
--- a/sdext/source/presenter/PresenterConfigurationAccess.cxx
+++ b/sdext/source/presenter/PresenterConfigurationAccess.cxx
@@ -49,7 +49,7 @@ PresenterConfigurationAccess::PresenterConfigurationAccess (
uno::Sequence<uno::Any> aCreationArguments(comphelper::InitAnyPropertySequence(
{
{"nodepath", uno::Any(rsRootName)},
- {"depth", uno::Any((sal_Int32)-1)}
+ {"depth", uno::Any(sal_Int32(-1))}
}));
OUString sAccessService;
diff --git a/sdext/source/presenter/PresenterNotesView.cxx b/sdext/source/presenter/PresenterNotesView.cxx
index ababf72265ae..7ea54d85cc7c 100644
--- a/sdext/source/presenter/PresenterNotesView.cxx
+++ b/sdext/source/presenter/PresenterNotesView.cxx
@@ -642,7 +642,7 @@ void PresenterNotesView::ChangeFontSize (const sal_Int32 nSizeChange)
return;
pConfiguration->GoToChild(OUString("Font"));
- pConfiguration->SetProperty("Size", Any((sal_Int32)(nNewSize+0.5)));
+ pConfiguration->SetProperty("Size", Any(static_cast<sal_Int32>(nNewSize+0.5)));
pConfiguration->CommitChanges();
}
catch (Exception&)
diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx
index ec244a2ef520..5cc42ef5e64f 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -533,7 +533,7 @@ void PresenterScrollBar::UpdateWidthOrHeight (
if (xBitmap.is())
{
const geometry::IntegerSize2D aBitmapSize (xBitmap->getSize());
- const sal_Int32 nBitmapSize = (sal_Int32)GetMinor(aBitmapSize.Width, aBitmapSize.Height);
+ const sal_Int32 nBitmapSize = static_cast<sal_Int32>(GetMinor(aBitmapSize.Width, aBitmapSize.Height));
if (nBitmapSize > rSize)
rSize = nBitmapSize;
}
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx
index 31cfa9d337be..99b71da4dd26 100644
--- a/sdext/source/presenter/PresenterWindowManager.cxx
+++ b/sdext/source/presenter/PresenterWindowManager.cxx
@@ -173,7 +173,7 @@ void PresenterWindowManager::NotifyViewCreation (const Reference<XView>& rxView)
mpPresenterController->GetPaintManager()->Invalidate(
pDescriptor->mxContentWindow,
- (sal_Int16)(awt::InvalidateStyle::TRANSPARENT
+ sal_Int16(awt::InvalidateStyle::TRANSPARENT
| awt::InvalidateStyle::CHILDREN));
}
}