diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-11-21 11:31:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-11-22 13:21:36 +0100 |
commit | 91436c281b6cbd7ca3678370afe2f9d874a4e422 (patch) | |
tree | a25a27b1c8c4437e7e399e65cb2f312c80f133f3 /sw | |
parent | 822375143bc8529dbbb6ec66d616aecbe94135b5 (diff) |
loplugin:unusedfields update the post-process script
(*) ignore temporary fields in lambdas
(*) don't ignore the vcl/weld stuff anymore
Change-Id: I4cda18f779588409891a2b2f8b1371e60f9b9ac0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/xmldump.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index 09cd98ff1525..f729c021f75d 100644 --- a/sw/source/core/text/xmldump.cxx +++ b/sw/source/core/text/xmldump.cxx @@ -162,14 +162,11 @@ class XmlPortionDumper:public SwPortionHandler { private: xmlTextWriterPtr m_Writer; - TextFrameIndex m_Ofs; public: explicit XmlPortionDumper(xmlTextWriterPtr some_writer) : m_Writer(some_writer) - , m_Ofs(0) - { - } + {} /** @param nLength @@ -194,7 +191,6 @@ class XmlPortionDumper:public SwPortionHandler (void)xmlTextWriterWriteFormatAttribute(m_Writer, BAD_CAST("nWidth"), "%i", static_cast<int>(nWidth)); (void)xmlTextWriterEndElement(m_Writer); - m_Ofs += nLength; } /** @@ -205,7 +201,7 @@ class XmlPortionDumper:public SwPortionHandler @param nType type of this portion */ - virtual void Special( TextFrameIndex nLength, + virtual void Special( TextFrameIndex /*nLength*/, const OUString & /*rText*/, PortionType nType, const SwFont* pFont ) override @@ -218,7 +214,6 @@ class XmlPortionDumper:public SwPortionHandler pFont->dumpAsXml(m_Writer); (void)xmlTextWriterEndElement(m_Writer); - m_Ofs += nLength; } virtual void LineBreak() override @@ -231,11 +226,10 @@ class XmlPortionDumper:public SwPortionHandler * @param nLength * number of 'model string' characters to be skipped */ - virtual void Skip( TextFrameIndex nLength ) override + virtual void Skip( TextFrameIndex /*nLength*/ ) override { (void)xmlTextWriterStartElement(m_Writer, BAD_CAST("Skip")); (void)xmlTextWriterEndElement(m_Writer); - m_Ofs += nLength; } virtual void Finish( ) override |