Kaydet (Commit) 947cc1b5 authored tarafından Noel Grandin's avatar Noel Grandin

inline one-liner static method

Change-Id: I9e0bd7a34ed691b245738dd66ff5ba7cc879ebe5
üst 630ec711
......@@ -36,14 +36,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.
*/
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment