From 12062cb281dce9b23bf643dce7744520cf8820f7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 Jul 2019 21:23:08 +0200 Subject: new loplugin:mapindex Change-Id: I6b5f73b2187009e95d4d666e03e5803f522cee06 Reviewed-on: https://gerrit.libreoffice.org/76584 Tested-by: Jenkins Reviewed-by: Noel Grandin --- hwpfilter/source/hpara.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hwpfilter/source') diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx index e470135d09f2..7363a4b91cf1 100644 --- a/hwpfilter/source/hpara.cxx +++ b/hwpfilter/source/hpara.cxx @@ -165,9 +165,10 @@ bool HWPPara::Read(HWPFile & hwpf, unsigned char flag) ii = 0; while (ii < nch) { - hhstr[ii] = readHBox(hwpf); - if (!hhstr[ii]) + auto hBox = readHBox(hwpf); + if (!hBox) return false; + hhstr[ii] = std::move(hBox); if (hhstr[ii]->hh == CH_END_PARA) break; if( hhstr[ii]->hh < CH_END_PARA ) -- cgit v1.2.3