diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-10 13:32:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-10 13:32:59 +0000 |
commit | 5e3612b1d5923845bf955231278f45b4e3089951 (patch) | |
tree | b9090a66542206a183d965458234dca7e7046ed9 /vcl/generic | |
parent | 6dc465535784fa8964fbd7d1b12eaecadf027cdc (diff) |
can drop intermediate strings now
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/print/genprnpsp.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx index 83b3418f6728..18980a421e28 100644 --- a/vcl/generic/print/genprnpsp.cxx +++ b/vcl/generic/print/genprnpsp.cxx @@ -357,10 +357,9 @@ static bool sendAFax( const OUString& rFaxNumber, const OUString& rFileName, con { while( aFaxNumbers.begin() != aFaxNumbers.end() && bSuccess ) { - OUString aCmdLine( rCommand ); OUString aFaxNumber( aFaxNumbers.front() ); aFaxNumbers.pop_front(); - aCmdLine = comphelper::string::replace( aCmdLine, OUString( RTL_CONSTASCII_USTRINGPARAM( "(PHONE)" ) ), aFaxNumber ); + OUString aCmdLine = comphelper::string::replace( rCommand, OUString( RTL_CONSTASCII_USTRINGPARAM( "(PHONE)" ) ), aFaxNumber ); #if OSL_DEBUG_LEVEL > 1 fprintf( stderr, "sending fax to \"%s\"\n", OUStringToOString( aFaxNumber, osl_getThreadTextEncoding() ).getStr() ); #endif @@ -383,8 +382,7 @@ static bool sendAFax( const OUString& rFaxNumber, const OUString& rFileName, con static bool createPdf( const OUString& rToFile, const OUString& rFromFile, const OUString& rCommandLine ) { #if defined( UNX ) - OUString aCommandLine( rCommandLine ); - aCommandLine = comphelper::string::replace( aCommandLine, OUString( RTL_CONSTASCII_USTRINGPARAM( "(OUTFILE)" ) ), rToFile ); + OUString aCommandLine = comphelper::string::replace( rCommandLine, OUString( RTL_CONSTASCII_USTRINGPARAM( "(OUTFILE)" ) ), rToFile ); return passFileToCommandLine( rFromFile, aCommandLine ); #else |