diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-29 21:23:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-01 09:09:34 +0200 |
commit | 12062cb281dce9b23bf643dce7744520cf8820f7 (patch) | |
tree | b52c70605401792385cd8e3f09d027594d5a0218 /hwpfilter | |
parent | 0cc2ec0f0f2380d2c5456a5b8c9bb1789e832cde (diff) |
new loplugin:mapindex
Change-Id: I6b5f73b2187009e95d4d666e03e5803f522cee06
Reviewed-on: https://gerrit.libreoffice.org/76584
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hpara.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 ) |