summaryrefslogtreecommitdiff
path: root/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:20:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:20:29 +0100
commit4b557ffbccf4062b0626ab8d068fa6103ba6a837 (patch)
treecdef6510accb769759a6e05df30fa86ea514c235 /lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
parent4288c320b236e6f1643846a78618c3ce365aec82 (diff)
More loplugin:cstylecast: lingucomponent
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: I0aed24dcacb95873df50e34a41a54979ad725e9d
Diffstat (limited to 'lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx')
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index 8aa3c2e5e4aa..4bdaa74d0a2a 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -406,7 +406,7 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
{
if (eEnc == RTL_TEXTENCODING_UTF8)
{
- if (((unsigned char) *c) >> 6 != 2)
+ if (static_cast<unsigned char>(*c) >> 6 != 2)
leftrep++;
}
else
@@ -468,17 +468,17 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
}
// handle shortening
- sal_Int16 nPos = (sal_Int16) ((nHyphenationPosAltHyph < nHyphenationPos) ?
+ sal_Int16 nPos = static_cast<sal_Int16>((nHyphenationPosAltHyph < nHyphenationPos) ?
nHyphenationPosAltHyph : nHyphenationPos);
// discretionary hyphenation
xRes = HyphenatedWord::CreateHyphenatedWord( aWord, LinguLocaleToLanguage( aLocale ), nPos,
aWord.replaceAt(nHyphenationPosAlt + 1, cut[nHyphenationPos], repHyph),
- (sal_Int16) nHyphenationPosAltHyph);
+ static_cast<sal_Int16>(nHyphenationPosAltHyph));
}
else
{
xRes = HyphenatedWord::CreateHyphenatedWord( aWord, LinguLocaleToLanguage( aLocale ),
- (sal_Int16)nHyphenationPos, aWord, (sal_Int16) nHyphenationPos);
+ static_cast<sal_Int16>(nHyphenationPos), aWord, static_cast<sal_Int16>(nHyphenationPos));
}
}