diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 13:31:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 13:49:59 +0200 |
commit | bdeb15881f2439665ec52bbfe7f55712eb57c163 (patch) | |
tree | a387f5c1594abc9ad068228d81b09c1c5bbd8eb1 /hwpfilter/source/hfont.cxx | |
parent | tdf#96888 Kill internal vcl dog-tags .. (diff) | |
download | core-bdeb15881f2439665ec52bbfe7f55712eb57c163.tar.gz core-bdeb15881f2439665ec52bbfe7f55712eb57c163.zip |
loplugin:unusedmethods unused return value in hwpfilter
Change-Id: Ib225db89e60708f6b55b3cb86f8e881386fab86f
Diffstat (limited to 'hwpfilter/source/hfont.cxx')
-rw-r--r-- | hwpfilter/source/hfont.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hwpfilter/source/hfont.cxx b/hwpfilter/source/hfont.cxx index 72746f23467e..a530f1272c06 100644 --- a/hwpfilter/source/hfont.cxx +++ b/hwpfilter/source/hfont.cxx @@ -43,18 +43,17 @@ HWPFont::~HWPFont() } -int HWPFont::AddFont(int lang, const char *font) +void HWPFont::AddFont(int lang, const char *font) { int nfonts; if (!(lang >= 0 && lang < NLanguage)) - return 0; + return; nfonts = nFonts[lang]; if (MAXFONTS <= nfonts) - return 0; + return; strncpy(fontnames[lang] + FONTNAMELEN * nfonts, font, FONTNAMELEN - 1); nFonts[lang]++; - return nfonts; } |