Kaydet (Commit) 43ecb25e authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to size_t, avoid unneeded OUString temporary

Change-Id: I218603ae912523429176a815165750c6f2e17bbb
üst c3f96f3b
...@@ -51,7 +51,7 @@ static Sequence<Any> *lcl_docbasic_convertArgs( SbxArray& rArgs ) ...@@ -51,7 +51,7 @@ static Sequence<Any> *lcl_docbasic_convertArgs( SbxArray& rArgs )
switch( pVar->GetType() ) switch( pVar->GetType() )
{ {
case SbxSTRING: case SbxSTRING:
pUnoArgs[i] <<= OUString( pVar->GetOUString() ); pUnoArgs[i] <<= pVar->GetOUString();
break; break;
case SbxCHAR: case SbxCHAR:
pUnoArgs[i] <<= (sal_Int16)pVar->GetChar() ; pUnoArgs[i] <<= (sal_Int16)pVar->GetChar() ;
...@@ -183,7 +183,7 @@ sal_uInt16 SwDoc::CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEve ...@@ -183,7 +183,7 @@ sal_uInt16 SwDoc::CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEve
if( GetSpzFrmFmts()->Contains( pFmt ) && if( GetSpzFrmFmts()->Contains( pFmt ) &&
0 != (pIMap = pFmt->GetURL().GetMap()) ) 0 != (pIMap = pFmt->GetURL().GetMap()) )
{ {
for( sal_uInt16 nPos = pIMap->GetIMapObjectCount(); nPos; ) for( size_t nPos = pIMap->GetIMapObjectCount(); nPos; )
if( pIMapObj == pIMap->GetIMapObject( --nPos )) if( pIMapObj == pIMap->GetIMapObject( --nPos ))
{ {
bCheckPtr = false; // misuse as a flag bCheckPtr = false; // misuse as a flag
......
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