diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-25 11:28:58 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:26:47 +0000 |
commit | 509f0c6a8aa36b7fa532f784e10bbe9ec4e57c4b (patch) | |
tree | a05e37827bdee103d11362388acbf6d0d57dca48 /sd | |
parent | 92d3025521ec8939b66500347f8d38ed5b24e3c8 (diff) |
loplugin:unusedreturntypes
and clean up the python script
Change-Id: I0a7068153290fbbb60bfeb4c8bda1c24d514500f
Reviewed-on: https://gerrit.libreoffice.org/25439
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/animations/CategoryListBox.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/animations/CategoryListBox.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/RemoteDialogClientBox.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/dlg/RemoteDialogClientBox.hxx | 2 |
4 files changed, 4 insertions, 8 deletions
diff --git a/sd/source/ui/animations/CategoryListBox.cxx b/sd/source/ui/animations/CategoryListBox.cxx index 769f47646f7b..4f66a379b963 100644 --- a/sd/source/ui/animations/CategoryListBox.cxx +++ b/sd/source/ui/animations/CategoryListBox.cxx @@ -34,13 +34,11 @@ CategoryListBox::~CategoryListBox() { } -sal_Int32 CategoryListBox::InsertCategory( const OUString& rStr ) +void CategoryListBox::InsertCategory( const OUString& rStr ) { sal_Int32 n = ListBox::InsertEntry( rStr ); if( n != LISTBOX_ENTRY_NOTFOUND ) ListBox::SetEntryFlags( n, ListBox::GetEntryFlags(n) | ListBoxEntryFlags::DisableSelection ); - - return n; } void CategoryListBox::UserDraw( const UserDrawEvent& rUDEvt ) diff --git a/sd/source/ui/animations/CategoryListBox.hxx b/sd/source/ui/animations/CategoryListBox.hxx index f485673be89d..e0bcad3ae541 100644 --- a/sd/source/ui/animations/CategoryListBox.hxx +++ b/sd/source/ui/animations/CategoryListBox.hxx @@ -33,7 +33,7 @@ public: virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE; - sal_Int32 InsertCategory( const OUString& rStr ); + void InsertCategory( const OUString& rStr ); DECL_LINK_TYPED(implDoubleClickHdl, ListBox&, void); diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index b18c70e96462..e6a654149d3c 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -631,7 +631,7 @@ bool ClientBox::Notify( NotifyEvent& rNEvt ) return true; } -long ClientBox::addEntry( const std::shared_ptr<ClientInfo>& pClientInfo ) +void ClientBox::addEntry( const std::shared_ptr<ClientInfo>& pClientInfo ) { long nPos = 0; @@ -664,8 +664,6 @@ long ClientBox::addEntry( const std::shared_ptr<ClientInfo>& pClientInfo ) Invalidate(); m_bNeedsRecalc = true; - - return nPos; } void ClientBox::clearEntries() diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.hxx b/sd/source/ui/dlg/RemoteDialogClientBox.hxx index c125efe040ef..a4b072efb151 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.hxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.hxx @@ -147,7 +147,7 @@ public: void RecalcAll(); void selectEntry( const long nPos ); - long addEntry(const std::shared_ptr<ClientInfo>& pClientInfo); + void addEntry(const std::shared_ptr<ClientInfo>& pClientInfo); void clearEntries(); OUString getPin(); |