summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-04-20 14:13:02 +0200
committerJan Holesovsky <kendy@collabora.com>2016-04-20 14:13:48 +0200
commitc9b1bfd0802fdbadf4bcc1e9ced51c7a769f5cc6 (patch)
tree3cac87f4faeaf62fefba19af4f1d81768e7c0d69 /svx
parentb0c0a074a2318a231f3f635784da494f1b713c53 (diff)
TextCharacterSpacingControl: Fix loplugin:vclwidgets warning.
Change-Id: I16c0f137d4dbf9b495b4be8ca32c009e2676ee0b
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/text/TextCharacterSpacingControl.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx
index fc56ee3188ac..5fb89486e95a 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();