summaryrefslogtreecommitdiff
path: root/vcl/source/glyphs/graphite_layout.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-01-17 01:18:38 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-19 06:19:33 +0000
commit5f01eb5d7a3927d31b7dd268562a59e3dacdd8e8 (patch)
tree1d2ef3177ce2e986dba34b4dc04c5c5aedcbf782 /vcl/source/glyphs/graphite_layout.cxx
parent5901827bd44dc3600bf66c83882e6847439d59d6 (diff)
fdo#39440 vcl: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Ibebfe89ad1874f5fa9e20fb76a534d9c2da01e3f Reviewed-on: https://gerrit.libreoffice.org/13969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/glyphs/graphite_layout.cxx')
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index 6f7cbb252ab0..f72b78035399 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -919,10 +919,9 @@ void GraphiteLayout::ApplyDXArray(ImplLayoutArgs &args, std::vector<int> & rDelt
size_t j = i + 1;
int nLastChar = i;
int nLastGlyph = nChar2Base;
- int nChar2BaseJ = -1;
for (; j < nChars; j++)
{
- nChar2BaseJ = mvChar2BaseGlyph[j];
+ const int nChar2BaseJ = mvChar2BaseGlyph[j];
assert((nChar2BaseJ >= -1) && (nChar2BaseJ < (signed)mvGlyphs.size()));
if (nChar2BaseJ != -1 )
{