From a7f6efc68ba97db98ebab9ebc473bffb8ded757f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Jan 2016 10:39:48 +0200 Subject: loplugin: unused return values Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins Reviewed-by: Noel Grandin --- hwpfilter/source/hstyle.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'hwpfilter/source/hstyle.cxx') diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx index cc7734cec83d..f2ba4b28d808 100644 --- a/hwpfilter/source/hstyle.cxx +++ b/hwpfilter/source/hstyle.cxx @@ -115,7 +115,7 @@ void HWPStyle::SetParaShape(int n, ParaShape * pshapep) } -bool HWPStyle::Read(HWPFile & hwpf) +void HWPStyle::Read(HWPFile & hwpf) { CharShape cshape; ParaShape pshape; @@ -123,7 +123,7 @@ bool HWPStyle::Read(HWPFile & hwpf) hwpf.Read2b(&nstyles, 1); style = ::comphelper::newArray_null(nstyles); if (!style) - return false; + return; for (int ii = 0; ii < nstyles; ii++) { @@ -135,9 +135,8 @@ bool HWPStyle::Read(HWPFile & hwpf) SetCharShape(ii, &cshape); SetParaShape(ii, &pshape); if (hwpf.State()) - return false; + return; } - return true; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit