diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-18 10:39:48 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-18 12:50:09 +0000 |
commit | a7f6efc68ba97db98ebab9ebc473bffb8ded757f (patch) | |
tree | bad37ce9ee1c9f61f1c8541a9689ecdea8c84c08 /toolkit | |
parent | a08745551370a052bfb6b91335956ababf435791 (diff) |
loplugin: unused return values
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af
Reviewed-on: https://gerrit.libreoffice.org/21571
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/unocontrolcontainer.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index 895cc79d4aa5..0f7e3a4c1207 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -90,16 +90,12 @@ public: inline bool empty() const { return maControls.empty(); } /** retrieves all controls currently in the list - @return - the number of controls in the list */ - size_t getControls( uno::Sequence< uno::Reference< awt::XControl > >& _out_rControls ) const; + void getControls( uno::Sequence< uno::Reference< awt::XControl > >& _out_rControls ) const; /** retrieves all identifiers of all controls currently in the list - @return - the number of controls in the list */ - size_t getIdentifiers( uno::Sequence< sal_Int32 >& _out_rIdentifiers ) const; + void getIdentifiers( uno::Sequence< sal_Int32 >& _out_rIdentifiers ) const; /** returns the first control which is registered under the given name */ @@ -180,7 +176,7 @@ UnoControlHolderList::ControlIdentifier UnoControlHolderList::addControl( const } -size_t UnoControlHolderList::getControls( uno::Sequence< uno::Reference< awt::XControl > >& _out_rControls ) const +void UnoControlHolderList::getControls( uno::Sequence< uno::Reference< awt::XControl > >& _out_rControls ) const { _out_rControls.realloc( maControls.size() ); uno::Reference< awt::XControl >* pControls = _out_rControls.getArray(); @@ -189,11 +185,10 @@ size_t UnoControlHolderList::getControls( uno::Sequence< uno::Reference< awt::XC ++loop, ++pControls ) *pControls = loop->second->getControl(); - return maControls.size(); } -size_t UnoControlHolderList::getIdentifiers( uno::Sequence< sal_Int32 >& _out_rIdentifiers ) const +void UnoControlHolderList::getIdentifiers( uno::Sequence< sal_Int32 >& _out_rIdentifiers ) const { _out_rIdentifiers.realloc( maControls.size() ); sal_Int32* pIndentifiers = _out_rIdentifiers.getArray(); @@ -202,7 +197,6 @@ size_t UnoControlHolderList::getIdentifiers( uno::Sequence< sal_Int32 >& _out_rI ++loop, ++pIndentifiers ) *pIndentifiers = loop->first; - return maControls.size(); } |