diff options
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; } |