summaryrefslogtreecommitdiffstats
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-15 12:23:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-16 07:26:27 +0100
commita2751c0795cdac9d78f8919aab319a418b6e0bbc (patch)
tree1396e27bd0e86536b9a29f08192f3d7eaeff2c8a /hwpfilter
parentFix typos (diff)
downloadcore-a2751c0795cdac9d78f8919aab319a418b6e0bbc.tar.gz
core-a2751c0795cdac9d78f8919aab319a418b6e0bbc.zip
loplugin:staticmethods improvement
Change-Id: I8889ce8a7d2309b54454cfe4c6421282e1c6e755 Reviewed-on: https://gerrit.libreoffice.org/63434 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hbox.h2
-rw-r--r--hwpfilter/source/hwpreader.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h
index cc3b13963a31..2c8489a14d0f 100644
--- a/hwpfilter/source/hbox.h
+++ b/hwpfilter/source/hbox.h
@@ -833,7 +833,7 @@ struct MailMerge: public HBox
MailMerge();
virtual bool Read(HWPFile &hwpf) override;
- hchar_string GetString();
+ static hchar_string GetString();
};
// char composition(23)
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index 49e819b84cd2..dea71b5ea4e9 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -4758,9 +4758,9 @@ void HwpReader::makeShowPageNum()
* mail merge operation using hwp addressbook and hwp data form.
* not support operation in OO writer.
*/
-void HwpReader::makeMailMerge(MailMerge * hbox)
+void HwpReader::makeMailMerge(MailMerge *)
{
- hchar_string const boxstr = hbox->GetString();
+ hchar_string const boxstr = MailMerge::GetString();
rchars(reinterpret_cast<sal_Unicode const *>(hconv(boxstr.c_str())));
}