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

Jan Holesovsky kendy at collabora.com
Wed Apr 20 12:14:59 UTC 2016


 svx/source/sidebar/text/TextCharacterSpacingControl.cxx |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

New commits:
commit c9b1bfd0802fdbadf4bcc1e9ced51c7a769f5cc6
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Wed Apr 20 14:13:02 2016 +0200

    TextCharacterSpacingControl: Fix loplugin:vclwidgets warning.
    
    Change-Id: I16c0f137d4dbf9b495b4be8ca32c009e2676ee0b

diff --git a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx
index fc56ee3..5fb8948 100644
--- a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx
+++ b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx
@@ -77,20 +77,19 @@ TextCharacterSpacingControl::TextCharacterSpacingControl(sal_uInt16 nId)
 
 TextCharacterSpacingControl::~TextCharacterSpacingControl()
 {
-    if(GetLastCustomState() == SPACING_CLOSE_BY_CUS_EDIT)
+    disposeOnce();
+}
+
+void TextCharacterSpacingControl::dispose()
+{
+    if (GetLastCustomState() == SPACING_CLOSE_BY_CUS_EDIT)
     {
         SvtViewOptions aWinOpt(E_WINDOW, SIDEBAR_SPACING_GLOBAL_VALUE);
         css::uno::Sequence<css::beans::NamedValue> aSeq
             { { "Spacing", css::uno::makeAny(OUString::number(GetLastCustomValue())) } };
         aWinOpt.SetUserData(aSeq);
-
     }
 
-    disposeOnce();
-}
-
-void TextCharacterSpacingControl::dispose()
-{
     maFTBy.clear();
     maFTSpacing.clear();
     maLBKerning.clear();


More information about the Libreoffice-commits mailing list