summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-21 09:20:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-21 11:24:10 +0200
commit80a900838e46056a9b8886791a490cda0b6254e6 (patch)
treef11f5d60f5188708deebfea7837a7d1e688ea3a8 /cppu
parent1dce9ee7e12871ee63434499db805e806b9e9d3c (diff)
elide some makeStringAndClear() calls
Change-Id: Ifd8de0042b843de0766a370fb19b9f7791974612 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137284 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/uno/lbenv.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx
index dd29951a6276..3e0152c969a1 100644
--- a/cppu/source/uno/lbenv.cxx
+++ b/cppu/source/uno/lbenv.cxx
@@ -699,7 +699,8 @@ extern "C" void SAL_CALL uno_dumpEnvironment(
"###########################################", pFilter );
buf.append( "environment: " );
buf.append( pEnv->pTypeName );
- writeLine( stream, buf.makeStringAndClear(), pFilter );
+ writeLine( stream, buf, pFilter );
+ buf.setLength(0);
writeLine( stream, "NO INTERFACE INFORMATION AVAILABLE!", pFilter );
return;
}
@@ -708,7 +709,8 @@ extern "C" void SAL_CALL uno_dumpEnvironment(
"######################################", pFilter );
buf.append( "environment dump: " );
buf.append( pEnv->pTypeName );
- writeLine( stream, buf.makeStringAndClear(), pFilter );
+ writeLine( stream, buf, pFilter );
+ buf.setLength(0);
uno_DefaultEnvironment * that =
reinterpret_cast< uno_DefaultEnvironment * >(pEnv);
@@ -727,7 +729,8 @@ extern "C" void SAL_CALL uno_dumpEnvironment(
buf.append( "; oid=\"" );
buf.append( pOEntry->oid );
buf.append( '\"' );
- writeLine( stream, buf.makeStringAndClear(), pFilter );
+ writeLine( stream, buf, pFilter );
+ buf.setLength(0);
for ( std::size_t nPos = 0;
nPos < pOEntry->aInterfaces.size(); ++nPos )
@@ -758,7 +761,8 @@ extern "C" void SAL_CALL uno_dumpEnvironment(
buf.append( " (ptr not found in map!)" );
}
}
- writeLine( stream, buf.makeStringAndClear(), pFilter );
+ writeLine( stream, buf, pFilter );
+ buf.setLength(0);
}
}
if (! ptr2obj.empty())