summaryrefslogtreecommitdiff
path: root/vcl/source/font
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/font
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/font')
-rw-r--r--vcl/source/font/PhysicalFontCollection.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx
index 6754e1bbfdf5..5f51a3f6e345 100644
--- a/vcl/source/font/PhysicalFontCollection.cxx
+++ b/vcl/source/font/PhysicalFontCollection.cxx
@@ -490,7 +490,6 @@ PhysicalFontFamily* PhysicalFontCollection::ImplFindByAttributes( sal_uLong nSea
InitMatchData();
PhysicalFontFamily* pFoundData = NULL;
- long nTestMatch;
long nBestMatch = 40000;
sal_uLong nBestType = 0;
@@ -517,7 +516,7 @@ PhysicalFontFamily* PhysicalFontCollection::ImplFindByAttributes( sal_uLong nSea
// Otherstyle, +Special, +Decorative,
// 1000 Typewriter, Rounded, Gothic, Schollbook
// 100
- nTestMatch = 0;
+ long nTestMatch = 0;
// test CJK script attributes
if ( nSearchType & IMPL_FONT_ATTR_CJK )