summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-18 11:54:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-19 07:57:49 +0200
commit265072a4cafd9f8552264448e2fc049ae3ac97e5 (patch)
treeeffa65b8c43bedee6493da446840f3114fd2d77f /vcl/source/font
parenta22d32644be3fede66558df997e4c75ed96b2fa8 (diff)
loplugin:staticvar in vcl
Change-Id: I2bdab84dc81e0545aa96542caec213db61765f68 Reviewed-on: https://gerrit.libreoffice.org/61922 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/font')
-rw-r--r--vcl/source/font/font.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx
index e8981996e09a..1cf88d394175 100644
--- a/vcl/source/font/font.cxx
+++ b/vcl/source/font/font.cxx
@@ -532,7 +532,7 @@ namespace
return bResult;
}
- struct WeightSearchEntry
+ static struct WeightSearchEntry
{
const char* string;
int string_len;
@@ -543,7 +543,7 @@ namespace
return rtl_str_compareIgnoreAsciiCase_WithLength( string, string_len, rRight.string, rRight.string_len ) < 0;
}
}
- weight_table[] =
+ const weight_table[] =
{
{ "black", 5, WEIGHT_BLACK },
{ "bold", 4, WEIGHT_BOLD },
@@ -611,7 +611,7 @@ namespace
aEnt.string_len = (pClose-pOpen)-1;
aEnt.weight = WEIGHT_NORMAL;
const int nEnt = SAL_N_ELEMENTS( weight_table );
- WeightSearchEntry* pFound = std::lower_bound( weight_table, weight_table+nEnt, aEnt );
+ WeightSearchEntry const * pFound = std::lower_bound( weight_table, weight_table+nEnt, aEnt );
if( pFound != (weight_table+nEnt) )
o_rResult.SetWeight( pFound->weight );
}