summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-09-30 12:08:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-30 14:56:06 +0200
commit46da549a68003ef5a35aedf4621482cb2b54e930 (patch)
treeb60d2081c076545482ff6bb33bcb6c0d1d2d24c2 /sfx2/source/control
parent71303c5c23bdb385e9f12c0dbe5d2a0818b836ec (diff)
loplugin:reducevarscope in sfx2
Change-Id: I63ee19bfe7ad01ff4ad8c941bffadd9406101c6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103678 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/unoctitm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index be3b79d1d421..d51e5f3b443f 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1273,11 +1273,11 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, SfxViewFrame* pViewFra
}
else if (aEvent.FeatureURL.Path == "LanguageStatus")
{
- OUString sValue;
css::uno::Sequence< OUString > aSeq;
if (aEvent.IsEnabled)
{
+ OUString sValue;
if (aEvent.State >>= sValue)
{
aBuffer.append(sValue);