summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-04-17 09:20:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-04-17 17:16:29 +0200
commita0c08ce6cf5e0cd88238fefb3b819305daf4005e (patch)
treefc081264084828ed5937f624a59e33305b29aae5 /sal/osl
parent955b4aa7619206e2ae38127e3cfaecbf1d1d7e11 (diff)
loplugin:stringadd
Change-Id: I674655aa4bfe38675dd3c9d677a7d7c64b3eaac8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150478 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/w32/backtrace.cxx7
-rw-r--r--sal/osl/w32/procimpl.cxx3
2 files changed, 3 insertions, 7 deletions
diff --git a/sal/osl/w32/backtrace.cxx b/sal/osl/w32/backtrace.cxx
index d9231de44517..8d55c6485a12 100644
--- a/sal/osl/w32/backtrace.cxx
+++ b/sal/osl/w32/backtrace.cxx
@@ -75,12 +75,9 @@ OUString sal::backtrace_to_string(BacktraceState* backtraceState)
for( int i = 0; i < nFrames; i++ )
{
SymFromAddr( hProcess, reinterpret_cast<DWORD64>(backtraceState->buffer[ i ]), nullptr, pSymbol );
- aBuf.append( static_cast<sal_Int32>(nFrames - i - 1) );
- aBuf.append( ": " );
+ aBuf.append( OUString::number(nFrames - i - 1) + ": " );
aBuf.appendAscii( pSymbol->Name );
- aBuf.append( " - 0x" );
- aBuf.append( static_cast<sal_Int64>(pSymbol->Address), 16 );
- aBuf.append( "\n" );
+ aBuf.append( " - 0x" + OUString::number(pSymbol->Address, 16) + "\n" );
}
free( pSymbol );
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
index 5fb9a46348b2..1689d6ac6be9 100644
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -422,8 +422,7 @@ oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO(
if (!(Options & osl_Process_WAIT) || (Options & osl_Process_DETACHED))
flags |= CREATE_NEW_CONSOLE;
- command_line.append(batch_processor);
- command_line.append(" /c ");
+ command_line.append(batch_processor + " /c ");
}
else
// should we return here in case of error?