summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/StyleOOoTContext.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:09:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:09:29 +0100
commitdec5264878903ee010e9a6296357750f6c69c844 (patch)
treee987833003c31730486c95e82b6cc97b960de1a2 /xmloff/source/transform/StyleOOoTContext.cxx
parentab279d30de4188baa4b33688aaed96072f3b4818 (diff)
More loplugin:cstylecast: xmloff
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: Ic872cef7bb9982305528ec3ce12a1871f055b752
Diffstat (limited to 'xmloff/source/transform/StyleOOoTContext.cxx')
-rw-r--r--xmloff/source/transform/StyleOOoTContext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx
index 29512be6af94..738f1e7622d7 100644
--- a/xmloff/source/transform/StyleOOoTContext.cxx
+++ b/xmloff/source/transform/StyleOOoTContext.cxx
@@ -900,7 +900,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
case XML_ATACTION_GAMMA_OOO: // converts double value to percentage
{
double fValue = sAttrValue.toDouble();
- sal_Int32 nValue = (sal_Int32)((fValue * 100.0) + ( fValue > 0 ? 0.5 : - 0.5 ) );
+ sal_Int32 nValue = static_cast<sal_Int32>((fValue * 100.0) + ( fValue > 0 ? 0.5 : - 0.5 ) );
OUStringBuffer aOut;
::sax::Converter::convertPercent( aOut, nValue );