summaryrefslogtreecommitdiff
path: root/linguistic/source/hyphdsp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:20:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:20:13 +0100
commit4288c320b236e6f1643846a78618c3ce365aec82 (patch)
treefedf60accf8a3af290d24424189fc5c277916142 /linguistic/source/hyphdsp.cxx
parentad137adbaea7fcb009b4b22ad00a5e3fd3a89ff5 (diff)
More loplugin:cstylecast: linguistic
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: Ic1b6e8fbf3ba8d3477ee3f5539667427d26c2f43
Diffstat (limited to 'linguistic/source/hyphdsp.cxx')
-rw-r--r--linguistic/source/hyphdsp.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index f964a15a0fcf..bb1bdfebdef5 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -110,7 +110,7 @@ Reference<XHyphenatedWord> HyphenatorDispatcher::buildHyphWord(
if (!bSkip && nHyphIdx >= 0)
{
if (nLeading <= nMaxLeading) {
- nHyphenationPos = (sal_Int16) nHyphIdx;
+ nHyphenationPos = static_cast<sal_Int16>(nHyphIdx);
nOrigHyphPos = i;
}
}
@@ -220,7 +220,7 @@ Reference< XPossibleHyphens > HyphenatorDispatcher::buildPossHyphens(
else
{
if (!bSkip && nHyphIdx >= 0)
- pPos[ nHyphCount++ ] = (sal_Int16) nHyphIdx;
+ pPos[ nHyphCount++ ] = static_cast<sal_Int16>(nHyphIdx);
bSkip = true; //! multiple '=' should count as one only
}
}
@@ -305,7 +305,7 @@ Reference< XHyphenatedWord > SAL_CALL
bWordModified |= RemoveHyphens( aChkWord );
if (IsIgnoreControlChars( rProperties, GetPropSet() ))
bWordModified |= RemoveControlChars( aChkWord );
- sal_Int16 nChkMaxLeading = (sal_Int16) GetPosInWordToCheck( rWord, nMaxLeading );
+ sal_Int16 nChkMaxLeading = static_cast<sal_Int16>(GetPosInWordToCheck( rWord, nMaxLeading ));
// check for results from (positive) dictionaries which have precedence!
Reference< XDictionaryEntry > xEntry;
@@ -379,7 +379,7 @@ Reference< XHyphenatedWord > SAL_CALL
xRes = xHyph->hyphenate( aChkWord, rLocale, nChkMaxLeading,
rProperties );
- pEntry->nLastTriedSvcIndex = (sal_Int16) i;
+ pEntry->nLastTriedSvcIndex = static_cast<sal_Int16>(i);
++i;
// if language is not supported by the services
@@ -440,7 +440,7 @@ Reference< XHyphenatedWord > SAL_CALL
bWordModified |= RemoveHyphens( aChkWord );
if (IsIgnoreControlChars( rProperties, GetPropSet() ))
bWordModified |= RemoveControlChars( aChkWord );
- sal_Int16 nChkIndex = (sal_Int16) GetPosInWordToCheck( rWord, nIndex );
+ sal_Int16 nChkIndex = static_cast<sal_Int16>(GetPosInWordToCheck( rWord, nIndex ));
// check for results from (positive) dictionaries which have precedence!
Reference< XDictionaryEntry > xEntry;
@@ -510,7 +510,7 @@ Reference< XHyphenatedWord > SAL_CALL
xRes = xHyph->queryAlternativeSpelling( aChkWord, rLocale,
nChkIndex, rProperties );
- pEntry->nLastTriedSvcIndex = (sal_Int16) i;
+ pEntry->nLastTriedSvcIndex = static_cast<sal_Int16>(i);
++i;
// if language is not supported by the services
@@ -631,7 +631,7 @@ Reference< XPossibleHyphens > SAL_CALL
if (xHyph.is() && xHyph->hasLocale( rLocale ))
xRes = xHyph->createPossibleHyphens( aChkWord, rLocale, rProperties );
- pEntry->nLastTriedSvcIndex = (sal_Int16) i;
+ pEntry->nLastTriedSvcIndex = static_cast<sal_Int16>(i);
++i;
// if language is not supported by the services