summaryrefslogtreecommitdiff
path: root/scripting/Jar_MemoryUsage.mk
blob: 2362012b25f26d27daf68464ad1873260a8b40f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

$(eval $(call gb_Jar_Jar,MemoryUsage))

$(eval $(call gb_Jar_use_jars,MemoryUsage,\
	juh \
	jurt \
	ridl \
	unoil \
))

$(eval $(call gb_Jar_add_sourcefiles,MemoryUsage,\
	scripting/examples/java/MemoryUsage/MemoryUsage \
))

$(eval $(call gb_Jar_set_packageroot,MemoryUsage,org))

# vim: set noet sw=4 ts=4:
r>
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/controller/displaymodecontroller.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/controller/displaymodecontroller.cxx')
-rw-r--r--sd/source/ui/controller/displaymodecontroller.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/controller/displaymodecontroller.cxx b/sd/source/ui/controller/displaymodecontroller.cxx
index bac411ee621a..7555d0d48e4b 100644
--- a/sd/source/ui/controller/displaymodecontroller.cxx
+++ b/sd/source/ui/controller/displaymodecontroller.cxx
@@ -252,9 +252,9 @@ void DisplayModeController::setToolboxItemImage(const OUString& rImage)
double scale = 1.0f;
Size size = aBmp.GetSizePixel();
if (size.Width() > targetSize)
- scale = (double)targetSize / (double)size.Width();
+ scale = static_cast<double>(targetSize) / static_cast<double>(size.Width());
if (size.Height() > targetSize)
- scale = ::std::min( scale, (double)targetSize / (double)size.Height() );
+ scale = ::std::min( scale, static_cast<double>(targetSize) / static_cast<double>(size.Height()) );
aBmp.Scale( scale, scale );
pToolBox->SetItemImage( nId, Image( aBmp ) );
}