diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-01 12:30:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-02 08:47:30 +0200 |
commit | 947cc1b53a5c87431202811e231cbfad790c6e68 (patch) | |
tree | d2e1c0ccd6ce8fa5596a1c963ed3efa62a86d66f /cppuhelper | |
parent | 630ec7110ec822d1d380d5181bcbb2570a129a21 (diff) |
inline one-liner static method
Change-Id: I9e0bd7a34ed691b245738dd66ff5ba7cc879ebe5
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/interfacecontainer.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx index c824007c9a67..9d4a2ac27372 100644 --- a/cppuhelper/source/interfacecontainer.cxx +++ b/cppuhelper/source/interfacecontainer.cxx @@ -37,14 +37,6 @@ using namespace com::sun::star::lang; namespace cppu { /** - * Reallocate the sequence. - */ -static void realloc( Sequence< Reference< XInterface > > & rSeq, sal_Int32 nNewLen ) -{ - rSeq.realloc( nNewLen ); -} - -/** * Remove an element from an interface sequence. */ static void sequenceRemoveElementAt( Sequence< Reference< XInterface > > & rSeq, sal_Int32 index ) @@ -211,7 +203,7 @@ sal_Int32 OInterfaceContainerHelper::addInterface( const Reference<XInterface> & if( bIsList ) { sal_Int32 nLen = aData.pAsSequence->getLength(); - realloc( *aData.pAsSequence, nLen +1 ); + aData.pAsSequence->realloc( nLen +1 ); aData.pAsSequence->getArray()[ nLen ] = rListener; return nLen +1; } |