diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-09-07 10:23:06 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-09-07 10:37:25 +0300 |
commit | affb728dbbe1176b4b7e64514293e98e0c231e79 (patch) | |
tree | e638154a67f7c7936b10a948c705a80558bb6dc0 /svx | |
parent | ca7bab0561aa6afa399f1d2f449402545768859e (diff) |
WaE: implicit conversion of literal of type 'int' to 'bool'
[loplugin:literaltoboolconversion].
Change-Id: I815a41b0bc36aea3757ce3458688e92862f732cd
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/mnuctrls/SmartTagCtl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/mnuctrls/SmartTagCtl.cxx b/svx/source/mnuctrls/SmartTagCtl.cxx index f08889f8f7aa..3dbfc6dce242 100644 --- a/svx/source/mnuctrls/SmartTagCtl.cxx +++ b/svx/source/mnuctrls/SmartTagCtl.cxx @@ -161,7 +161,9 @@ IMPL_LINK_TYPED( SvxSmartTagsControl, MenuSelect, Menu *, pMen, bool ) sal_uInt16 nMyId = pMen->GetCurItemId(); - if ( nMyId < MN_ST_INSERT_START) return 0; + if ( nMyId < MN_ST_INSERT_START) + return false; + nMyId -= MN_ST_INSERT_START; // compute smarttag lib index and action index |