diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-23 13:13:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-24 10:51:45 +0000 |
commit | 920d4463f6e59b815852c173e2974ffc7b4bb284 (patch) | |
tree | ac56efa2d79ad622f261e8664a57afa7c7ea0e49 /svtools | |
parent | 2b7109a12ab772bf53766d6e06b422c8e687d482 (diff) |
loplugin:singlevalfields in vcl(part1)
Change-Id: I0031199937cc95793951a070c4b3d8910933e69f
Reviewed-on: https://gerrit.libreoffice.org/26595
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/autocmpledit.cxx | 3 | ||||
-rw-r--r-- | svtools/source/control/inettbc.cxx | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/svtools/source/control/autocmpledit.cxx b/svtools/source/control/autocmpledit.cxx index af03e270bf44..0ebcac4364db 100644 --- a/svtools/source/control/autocmpledit.cxx +++ b/svtools/source/control/autocmpledit.cxx @@ -30,9 +30,6 @@ void AutocompleteEdit::ClearEntries() IMPL_LINK_NOARG_TYPED(AutocompleteEdit, AutoCompleteHdl_Impl, Edit&, void) { - if( GetAutocompleteAction() != AutocompleteAction::KeyInput ) - return; - if( Application::AnyInput( VclInputFlags::KEYBOARD ) ) return; diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 962cc544df6c..542731b37d69 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -1101,8 +1101,7 @@ bool SvtURLBox::PreNotify( NotifyEvent& rNEvt ) IMPL_LINK_NOARG_TYPED(SvtURLBox, AutoCompleteHdl_Impl, Edit&, void) { - if ( GetSubEdit()->GetAutocompleteAction() == AutocompleteAction::KeyInput ) - TryAutoComplete(); + TryAutoComplete(); } bool SvtURLBox::Notify( NotifyEvent &rEvt ) |