summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/unocontrolcontainer.cxx14
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();
}