diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-05 11:53:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-10 17:11:00 +0100 |
commit | 242320d303d43a34ce2255a07783fbd51e253cd0 (patch) | |
tree | 14bd7757a57784a18d1aa2b731eb71999d14bf94 /linguistic/source | |
parent | 8523fb2b37a2cdd2c3743795bb33cf30a57c5385 (diff) |
new loplugin:reducevarscope
Change-Id: Iefe922c2e0d605114d54673d63eccc5e4abd545d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102143
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/hyphdsp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx index 4ce8d4aa099d..be33885880d3 100644 --- a/linguistic/source/hyphdsp.cxx +++ b/linguistic/source/hyphdsp.cxx @@ -88,7 +88,6 @@ Reference<XHyphenatedWord> HyphenatorDispatcher::buildHyphWord( if (nTextLen > 0 && aText[ nTextLen - 1 ] != '=' && aText[ nTextLen - 1 ] != '[') { sal_Int16 nHyphenationPos = -1; - sal_Int32 nHyphenPos = -1; sal_Int16 nOrigHyphPos = -1; OUStringBuffer aTmp( nTextLen ); @@ -149,6 +148,7 @@ Reference<XHyphenatedWord> HyphenatorDispatcher::buildHyphWord( } } #endif + sal_Int32 nHyphenPos = -1; if (aText[ nOrigHyphPos ] == '[') // alternative hyphenation { sal_Int16 split = 0; |