compilerplugins/clang/unusedmethods.unused-returns.results |    2 --
 include/svx/framelink.hxx                                  |    2 +-
 svx/source/dialog/framelink.cxx                            |    4 +---
 3 files changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 980164fe222460799f733a6f1a3acc53d5cb002c
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue Nov 19 16:47:20 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Nov 19 18:03:18 2024 +0100

    svx: unused return
    
    Change-Id: If747870121e3fc8c2d97b5fc769b2d928a4c3f9c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176777
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/compilerplugins/clang/unusedmethods.unused-returns.results 
b/compilerplugins/clang/unusedmethods.unused-returns.results
index 7866efc445d7..090769f1a2f6 100644
--- a/compilerplugins/clang/unusedmethods.unused-returns.results
+++ b/compilerplugins/clang/unusedmethods.unused-returns.results
@@ -152,8 +152,6 @@ include/svx/autoformathelper.hxx:216
     _Bool AutoFormatBase::SaveBlockB(SvStream &,unsigned short) const
 include/svx/dlgctrl.hxx:99
     Point SvxRectCtl::SetActualRPWithoutInvalidate(enum RectPoint)
-include/svx/framelink.hxx:159
-    svx::frame::Style & svx::frame::Style::MirrorSelf()
 include/svx/PaletteManager.hxx:87
     _Bool PaletteManager::GetLumModOff(unsigned short,unsigned short,short 
&,short &)
 include/test/a11y/AccessibilityTools.hxx:119
diff --git a/include/svx/framelink.hxx b/include/svx/framelink.hxx
index 5c98c3a1a3c6..fdd20c5994bf 100644
--- a/include/svx/framelink.hxx
+++ b/include/svx/framelink.hxx
@@ -156,7 +156,7 @@ public:
     void SetType( SvxBorderLineStyle nType ) { mnType = nType; }
 
     /** Mirrors this style (exchanges primary and secondary), if it is a 
double frame style. */
-    Style& MirrorSelf();
+    void MirrorSelf();
 
     /** Enables the Word-compatible Style comparison code. */
     void SetWordTableCell(bool bWordTableCell) { mbWordTableCell = 
bWordTableCell; }
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx
index 887fc445dc0c..60adda1d7136 100644
--- a/svx/source/dialog/framelink.cxx
+++ b/svx/source/dialog/framelink.cxx
@@ -160,7 +160,7 @@ void Style::Set( const SvxBorderLine* pBorder, double 
fScale, sal_uInt16 nMaxWid
     }
 }
 
-Style& Style::MirrorSelf()
+void Style::MirrorSelf()
 {
     if (mfSecn)
     {
@@ -173,8 +173,6 @@ Style& Style::MirrorSelf()
     {
         meRefMode = (meRefMode == RefMode::Begin) ? RefMode::End : 
RefMode::Begin;
     }
-
-    return *this;
 }
 
 bool Style::operator==( const Style& rOther) const

Reply via email to