summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-20 10:26:24 +0200
committerNoel Grandin <noel@peralex.com>2015-08-20 10:26:24 +0200
commit5a58e809fceada72cecc389588bcd792eb3d8105 (patch)
tree56fdd57e86aeb9d7d89a41d2566b91622de73051 /vcl/generic
parentfb2ad7ce2d201d9d2504274ad7e1bd0e803d9902 (diff)
loplugin:cstylecast
and improve the error message in the plugin Change-Id: I8719832a48e14c132f463340fbbc537845f82b0b
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/fontmanager/fontconfig.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/generic/fontmanager/fontconfig.cxx b/vcl/generic/fontmanager/fontconfig.cxx
index 4f81f3dfaaf7..becb419399b3 100644
--- a/vcl/generic/fontmanager/fontconfig.cxx
+++ b/vcl/generic/fontmanager/fontconfig.cxx
@@ -497,7 +497,7 @@ void PrintFontManager::countFontconfigFonts( std::unordered_map<OString, int, OS
FcResult eFileRes = FcPatternGetString(pFSet->fonts[i], FC_FILE, 0, &file);
FcResult eFamilyRes = rWrapper.LocalizedElementFromPattern( pFSet->fonts[i], &family, FC_FAMILY, FC_FAMILYLANG );
- if (bMinimalFontset && strncmp((char*)family, "Liberation", strlen("Liberation")))
+ if (bMinimalFontset && strncmp(reinterpret_cast<char*>(family), "Liberation", strlen("Liberation")))
continue;
FcResult eStyleRes = rWrapper.LocalizedElementFromPattern( pFSet->fonts[i], &style, FC_STYLE, FC_STYLELANG );
FcResult eSlantRes = FcPatternGetInteger(pFSet->fonts[i], FC_SLANT, 0, &slant);