diff options
Diffstat (limited to 'sd/source/ui/tools')
-rw-r--r-- | sd/source/ui/tools/ConfigurationAccess.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/tools/PreviewRenderer.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/tools/ConfigurationAccess.cxx b/sd/source/ui/tools/ConfigurationAccess.cxx index 438b4c015b0e..9e32b5314d2b 100644 --- a/sd/source/ui/tools/ConfigurationAccess.cxx +++ b/sd/source/ui/tools/ConfigurationAccess.cxx @@ -63,7 +63,7 @@ void ConfigurationAccess::Initialize ( Sequence<Any> aCreationArguments(comphelper::InitAnyPropertySequence( { {"nodepath", makeAny(rsRootName)}, - {"depth", makeAny((sal_Int32)-1)} + {"depth", makeAny(sal_Int32(-1))} })); OUString sAccessService; diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx index da9dab6e2077..143e2d02cb9e 100644 --- a/sd/source/ui/tools/PreviewRenderer.cxx +++ b/sd/source/ui/tools/PreviewRenderer.cxx @@ -438,7 +438,7 @@ Image PreviewRenderer::ScaleBitmap ( break; Size aFrameSize ( nWidth, - (long)((nWidth*1.0 * aSize.Height()) / aSize.Width() + 0.5)); + static_cast<long>((nWidth*1.0 * aSize.Height()) / aSize.Width() + 0.5)); Size aPreviewSize (aFrameSize.Width()-2,aFrameSize.Height()-2); MapMode aMapMode (mpPreviewDevice->GetMapMode()); aMapMode.SetMapUnit(MapUnit::MapPixel); |