diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-17 15:14:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-17 18:16:28 +0200 |
commit | 3ebbb150242cf049a9ddab7f498c63f3a44aa034 (patch) | |
tree | 3bdf235f490b173919369e7062570322effa795d /vcl/workben | |
parent | 73df133143daaff14c364468598bb250db6aecb1 (diff) |
loplugin:buffereadd find stuff involving adding *StringBuffer
and create conversion methods on *StringBuffer to make this work
Change-Id: I3cf5ee3e139826168894b46eff8ee4bcde00cb7e
Reviewed-on: https://gerrit.libreoffice.org/80949
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/svpclient.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx index 8ef179b0c1a2..74ccb9f9205f 100644 --- a/vcl/workben/svpclient.cxx +++ b/vcl/workben/svpclient.cxx @@ -254,10 +254,10 @@ IMPL_LINK_NOARG( MyWin, SelectHdl, ListBox&, void) if( nPos == -1 ) return; - OStringBuffer aCommand( 64 ); - aCommand.append( "get " ); - aCommand.append( OUStringToOString( aEntry.copy( nPos+2 ), RTL_TEXTENCODING_ASCII_US ) ); - OString aAnswer( processCommand( aCommand.makeStringAndClear() ) ); + OString aCommand = + "get " + + OUStringToOString( aEntry.copy( nPos+2 ), RTL_TEXTENCODING_ASCII_US ); + OString aAnswer( processCommand( aCommand ) ); SvMemoryStream aStream( aAnswer.getLength() ); aStream.WriteBytes( aAnswer.getStr(), aAnswer.getLength() ); aStream.Seek( STREAM_SEEK_TO_BEGIN ); |