summaryrefslogtreecommitdiff
path: root/i18nutil/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:22:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:22:14 +0100
commitb6c49c46cfde21ad92cd007bdb3531ff0c4e0cb0 (patch)
treee6203311826909607466555bd7930eeb8a804238 /i18nutil/source
parent57bbe564ba171663f6335b27df12352c71ed1832 (diff)
More loplugin:cstylecast: i18nutil
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: Idca83b62766c2de87bf112cf0bb565e953b7dcb0
Diffstat (limited to 'i18nutil/source')
-rw-r--r--i18nutil/source/utility/paper.cxx6
-rw-r--r--i18nutil/source/utility/unicode.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index c12ac29704ef..46034b15ae67 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -49,13 +49,13 @@ struct PageDesc
};
#define PT2MM100( v ) \
- (long)(((v) * 35.27777778) + 0.5)
+ long(((v) * 35.27777778) + 0.5)
#define IN2MM100( v ) \
- ((long)(((v) * 2540) + 0.5))
+ (long(((v) * 2540) + 0.5))
#define MM2MM100( v ) \
- ((long)((v) * 100))
+ (long((v) * 100))
//PostScript Printer Description File Format Specification
//http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index f225b3adc55d..e32fa1318bcb 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -46,7 +46,7 @@ T getScriptType( const sal_Unicode ch, const L* typeList, T unknownType ) {
}
return (type < UnicodeScript_kScriptCount &&
- ch >= UnicodeScriptType[static_cast<int>(typeList[i].from)][(int)UnicodeScriptTypeFrom]) ?
+ ch >= UnicodeScriptType[static_cast<int>(typeList[i].from)][int(UnicodeScriptTypeFrom)]) ?
typeList[i].value : unknownType;
}
@@ -74,7 +74,7 @@ unicode::getUnicodeType( const sal_Unicode ch ) {
else c = ch;
sal_Int16 address = UnicodeTypeIndex[ch >> 8];
- return r = (sal_Int16)((address < UnicodeTypeNumberBlock) ? UnicodeTypeBlockValue[address] :
+ return r = static_cast<sal_Int16>((address < UnicodeTypeNumberBlock) ? UnicodeTypeBlockValue[address] :
UnicodeTypeValue[((address - UnicodeTypeNumberBlock) << 8) + (ch & 0xff)]);
}