summaryrefslogtreecommitdiff
path: root/basctl/source/dlged/managelang.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-16 10:42:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-16 12:09:38 +0200
commit658eec1d5b96ea0a971fbdf531979480f72516a4 (patch)
tree1ac9b520cf79ebd7befe3c76ae2686176fbee255 /basctl/source/dlged/managelang.cxx
parent482ef1bfe95a32a6796ce5a3150f272845db7931 (diff)
loplugin:comparisonwithconstant in basctl
Change-Id: I0ac895e279e4feb47345e73ecef0d5ee1909c031 Reviewed-on: https://gerrit.libreoffice.org/37668 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/dlged/managelang.cxx')
-rw-r--r--basctl/source/dlged/managelang.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx
index 4b979921dbf5..a396f0fe0842 100644
--- a/basctl/source/dlged/managelang.cxx
+++ b/basctl/source/dlged/managelang.cxx
@@ -147,7 +147,7 @@ void ManageLanguageDialog::ClearLanguageBox()
IMPL_LINK_NOARG(ManageLanguageDialog, AddHdl, Button*, void)
{
ScopedVclPtrInstance< SetDefaultLanguageDialog > aDlg( this, m_xLocalizationMgr );
- if ( RET_OK == aDlg->Execute() )
+ if ( aDlg->Execute() == RET_OK )
{
// add new locales
Sequence< Locale > aLocaleSeq = aDlg->GetLocales();