diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 09:23:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 12:18:04 +0100 |
commit | 14b366e57a904c2c0d04804f15d8daf755f14541 (patch) | |
tree | 5997a5f1f60a5e0d418708948b408221ef50586c /svtools/source | |
parent | cabf739612a0e979ebcf76f40a24e66a354b10a5 (diff) |
loplugin:singlevalfields
Change-Id: I70dc861573fd1b3d799c88aa2a6d9a3eda0e2a43
Reviewed-on: https://gerrit.libreoffice.org/64327
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/ivctrl.cxx | 6 |
3 files changed, 1 insertions, 9 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index d81044043bca..b02ab4539b07 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -188,7 +188,6 @@ class SvxIconChoiceCtrl_Impl LocalFocus aFocus; // Data for focusrect ::vcl::AccessibleFactoryAccess aAccFactory; - SvxIconChoiceCtrlEntry* pCurEditedEntry; SvxIconChoiceCtrlTextMode eTextMode; SelectionMode eSelectionMode; sal_Int32 nSelectionCount; @@ -422,7 +421,6 @@ public: SvxIconChoiceCtrlEntry* pEntry ); #endif - bool IsEntryEditing() const { return (pCurEditedEntry!=nullptr); } size_t GetEntryCount() const { return aEntries.size(); } SvxIconChoiceCtrlEntry* GetEntry( size_t nPos ) { diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index 3e46890ad38c..4193a3056b32 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -68,7 +68,6 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( { bChooseWithCursor = false; pEntryPaintDev = nullptr; - pCurEditedEntry = nullptr; pCurHighlightFrame = nullptr; pAnchor = nullptr; pHdlEntry = nullptr; @@ -124,7 +123,6 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( SvxIconChoiceCtrl_Impl::~SvxIconChoiceCtrl_Impl() { - pCurEditedEntry = nullptr; Clear(false); CancelUserEvents(); pImpCursor.reset(); diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx index df8645cb9c5c..2b2cad1a1877 100644 --- a/svtools/source/contnr/ivctrl.cxx +++ b/svtools/source/contnr/ivctrl.cxx @@ -285,11 +285,7 @@ void SvtIconChoiceCtrl::KeyInput( const KeyEvent& rKEvt ) } bool SvtIconChoiceCtrl::DoKeyInput( const KeyEvent& rKEvt ) { - // under OS/2, we get key up/down even while editing - if( _pImpl->IsEntryEditing() ) - return true; - bool bHandled = _pImpl->KeyInput( rKEvt ); - return bHandled; + return _pImpl->KeyInput( rKEvt ); } sal_Int32 SvtIconChoiceCtrl::GetEntryListPos( SvxIconChoiceCtrlEntry const * pEntry ) const { |