diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-16 15:24:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-16 15:24:22 +0000 |
commit | 429290b8cf1fba8f730e00786dd3fd864a5c9ad5 (patch) | |
tree | f559eae17e774d9a316235872427524ad7af3965 /sfx2 | |
parent | c5ceb0134dddb79207d3b8ddb7a36ee1ca294329 (diff) |
-Werror=maybe-unintialized
Change-Id: I73eb58e44c00d5e1cfcabe71f2ba946a81a62fa7
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index ad66f45f84f3..3b0a6b8adbb1 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1107,10 +1107,10 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c } else if (aEvent.FeatureURL.Path == "ToggleMergeCells") { - if (aEvent.IsEnabled) + sal_Bool aBool; + + if (aEvent.IsEnabled && (aEvent.State >>= aBool)) { - sal_Bool aBool; - aEvent.State >>= aBool; aBuffer.append(OUString::boolean(aBool)); } else |