summaryrefslogtreecommitdiff
path: root/basctl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-18 15:59:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-19 13:25:54 +0100
commitbe94207ecb88a9005ee6624e354d70c9613d7653 (patch)
treee57c6534adaea7930e7eac95f3b77c4e37ac452e /basctl/source
parent7d9a5d886f4ba5c61d3c5602a9825510c68eea41 (diff)
new loplugin:emptyif
Change-Id: I1092115a0ceb3a5e6680a4b724b129f98a892c42 Reviewed-on: https://gerrit.libreoffice.org/48128 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source')
-rw-r--r--basctl/source/basicide/basicbox.cxx6
-rw-r--r--basctl/source/basicide/scriptdocument.cxx6
2 files changed, 1 insertions, 11 deletions
diff --git a/basctl/source/basicide/basicbox.cxx b/basctl/source/basicide/basicbox.cxx
index 6af00166696e..3efa5d01a8b6 100644
--- a/basctl/source/basicide/basicbox.cxx
+++ b/basctl/source/basicide/basicbox.cxx
@@ -484,12 +484,6 @@ bool LanguageBox::PreNotify( NotifyEvent& rNEvt )
break;
}
}
- else if( rNEvt.GetType() == MouseNotifyEvent::GETFOCUS )
- {
- }
- else if( rNEvt.GetType() == MouseNotifyEvent::LOSEFOCUS )
- {
- }
return bDone || ListBox::PreNotify( rNEvt );
}
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx
index 00135960566a..5dde5c181cdb 100644
--- a/basctl/source/basicide/scriptdocument.cxx
+++ b/basctl/source/basicide/scriptdocument.cxx
@@ -285,11 +285,7 @@ namespace basctl
,m_bDocumentClosed( false )
{
if ( _rxDocument.is() )
- {
- if ( impl_initDocument_nothrow( _rxDocument ) )
- {
- }
- }
+ impl_initDocument_nothrow( _rxDocument );
}
ScriptDocument::Impl::~Impl()