diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-22 11:26:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-22 11:54:12 +0100 |
commit | 1ae61b0ac4187b2938647f3ca0289a070a5dc7d2 (patch) | |
tree | 9461c0532919f4fe61f3e0e3fa8556e954244fbd /svtools/source/uno/unoevent.cxx | |
parent | 04bb9549e0a0ee567f3bd48a7707286c5abd631a (diff) |
loplugin:flatten in svtools
almost completely automatically rewritten, only had to tweak
the indentation on a couple of lines.
Change-Id: Ieec92e5b602d180d7ec556e3421ce3c835c1f646
Reviewed-on: https://gerrit.libreoffice.org/45072
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/uno/unoevent.cxx')
-rw-r--r-- | svtools/source/uno/unoevent.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx index 7125562135b6..4d6d4f130715 100644 --- a/svtools/source/uno/unoevent.cxx +++ b/svtools/source/uno/unoevent.cxx @@ -119,20 +119,20 @@ void getAnyFromMacro(Any& rAny, const SvxMacro& rMacro) // else: bRetValueOK not set // if we don't have a return value, make an empty one - if (! bRetValueOK) - { - // create "None" macro - Sequence<PropertyValue> aSequence(1); + if ( bRetValueOK) + return; - PropertyValue aKindValue; - aKindValue.Name = sEventType; - Any aTmp; - aTmp <<= OUString(sNone); - aKindValue.Value = aTmp; - aSequence[0] = aKindValue; + // create "None" macro + Sequence<PropertyValue> aSequence(1); - rAny <<= aSequence; - } + PropertyValue aKindValue; + aKindValue.Name = sEventType; + Any aTmp; + aTmp <<= OUString(sNone); + aKindValue.Value = aTmp; + aSequence[0] = aKindValue; + + rAny <<= aSequence; } /// @throws IllegalArgumentException |