diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-19 16:47:20 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-19 18:03:18 +0100 |
commit | 980164fe222460799f733a6f1a3acc53d5cb002c (patch) | |
tree | d86d305a44a2f1bbbdc3688b96607811095bb505 | |
parent | f1ab6d3e046c261ac0cc0de35bed3e61ba052dca (diff) |
svx: unused return
Change-Id: If747870121e3fc8c2d97b5fc769b2d928a4c3f9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176777
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | compilerplugins/clang/unusedmethods.unused-returns.results | 2 | ||||
-rw-r--r-- | include/svx/framelink.hxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/framelink.cxx | 4 |
3 files changed, 2 insertions, 6 deletions
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 |