[Libreoffice-commits] core.git: sw/source

Miklos Vajna vmiklos at collabora.co.uk
Fri Jun 16 06:05:53 UTC 2017


 sw/source/filter/ww8/rtfexportfilter.hxx    |    8 ++++----
 sw/source/filter/ww8/rtfstringbuffer.cxx    |    6 +-----
 sw/source/filter/ww8/rtfstringbuffer.hxx    |    4 ++--
 sw/source/uibase/docvw/SidebarScrollBar.hxx |    2 +-
 4 files changed, 8 insertions(+), 12 deletions(-)

New commits:
commit 9e9f310648992e103d664a82a96ed5bdee1db4ad
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Jun 15 21:06:24 2017 +0200

    sw RTF filter: more cleanup of redundant virtual keywords
    
    Change-Id: Ia2596e11f303edf5e1b81ab90062fd93df42159b
    Reviewed-on: https://gerrit.libreoffice.org/38847
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sw/source/filter/ww8/rtfexportfilter.hxx b/sw/source/filter/ww8/rtfexportfilter.hxx
index 473c9b2680fc..c58bf2b89554 100644
--- a/sw/source/filter/ww8/rtfexportfilter.hxx
+++ b/sw/source/filter/ww8/rtfexportfilter.hxx
@@ -48,14 +48,14 @@ protected:
     css::uno::Reference<css::lang::XComponent> m_xSrcDoc;
 public:
     explicit RtfExportFilter(css::uno::Reference<css::uno::XComponentContext> xCtx);
-    virtual ~RtfExportFilter() override;
+    ~RtfExportFilter() override;
 
     // XFilter
-    virtual sal_Bool SAL_CALL filter(const css::uno::Sequence<css::beans::PropertyValue>& aDescriptor) override;
-    virtual void SAL_CALL cancel() override;
+    sal_Bool SAL_CALL filter(const css::uno::Sequence<css::beans::PropertyValue>& aDescriptor) override;
+    void SAL_CALL cancel() override;
 
     // XExporter
-    virtual void SAL_CALL setSourceDocument(const css::uno::Reference<css::lang::XComponent>& xDoc) override;
+    void SAL_CALL setSourceDocument(const css::uno::Reference<css::lang::XComponent>& xDoc) override;
 
     RtfWriter m_aWriter;
 };
diff --git a/sw/source/filter/ww8/rtfstringbuffer.cxx b/sw/source/filter/ww8/rtfstringbuffer.cxx
index 3d7cffc76a7d..cd6c3eb6c4c2 100644
--- a/sw/source/filter/ww8/rtfstringbuffer.cxx
+++ b/sw/source/filter/ww8/rtfstringbuffer.cxx
@@ -9,11 +9,7 @@
 #include "rtfstringbuffer.hxx"
 #include "rtfattributeoutput.hxx"
 
-RtfStringBufferValue::RtfStringBufferValue()
-    : m_pFlyFrameFormat(nullptr),
-      m_pGrfNode(nullptr)
-{
-}
+RtfStringBufferValue::RtfStringBufferValue() = default;
 
 RtfStringBufferValue::RtfStringBufferValue(const SwFlyFrameFormat* pFlyFrameFormat, const SwGrfNode* pGrfNode)
     : m_pFlyFrameFormat(pFlyFrameFormat),
diff --git a/sw/source/filter/ww8/rtfstringbuffer.hxx b/sw/source/filter/ww8/rtfstringbuffer.hxx
index c1d90041e33b..e8e5580569f2 100644
--- a/sw/source/filter/ww8/rtfstringbuffer.hxx
+++ b/sw/source/filter/ww8/rtfstringbuffer.hxx
@@ -31,8 +31,8 @@ public:
     bool isGraphic() const;
 
     OStringBuffer m_aBuffer;
-    const SwFlyFrameFormat* m_pFlyFrameFormat;
-    const SwGrfNode* m_pGrfNode;
+    const SwFlyFrameFormat* m_pFlyFrameFormat = nullptr;
+    const SwGrfNode* m_pGrfNode = nullptr;
 };
 
 /// Wrapper around OStringBuffers, so less hexdump of graphics have to be kept in memory during RTF export.
diff --git a/sw/source/uibase/docvw/SidebarScrollBar.hxx b/sw/source/uibase/docvw/SidebarScrollBar.hxx
index 67c639f49770..68960d866605 100644
--- a/sw/source/uibase/docvw/SidebarScrollBar.hxx
+++ b/sw/source/uibase/docvw/SidebarScrollBar.hxx
@@ -40,7 +40,7 @@ protected:
     void MouseButtonUp(const MouseEvent& rMouseEvent) override;
 public:
     SidebarScrollBar(sw::annotation::SwAnnotationWin& rSidebarWin, WinBits nStyle, SwView& rView);
-    virtual ~SidebarScrollBar() override;
+    ~SidebarScrollBar() override;
 };
 
 }


More information about the Libreoffice-commits mailing list