diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-08 15:39:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-08 15:39:39 +0200 |
commit | 57cfc82a14f8af97b7c7ae03681457d2491cc8fc (patch) | |
tree | 8a75c1e3846ebc72fccd041566730dded62ed63c /vcl | |
parent | 862bd364390a05ad0b07f9280fb9a0f8b2cc4ed6 (diff) |
Use OString to dynamically assemble a string
Change-Id: I5ae99bd58217bc8b105abc71286d4036a175cbf2
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/print/printerjob.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx index 221b99925c53..887ca331cfe6 100644 --- a/vcl/generic/print/printerjob.cxx +++ b/vcl/generic/print/printerjob.cxx @@ -212,13 +212,7 @@ removeSpoolDir (const OUString& rSpoolDir) } OString aSysPathByte = OUStringToOString (aSysPath, osl_getThreadTextEncoding()); - sal_Char pSystem [128]; - sal_Int32 nChar = 0; - - nChar = psp::appendStr ("rm -rf ", pSystem); - nChar += psp::appendStr (aSysPathByte.getStr(), pSystem + nChar); - - if (system (pSystem) == -1) + if (system (OString("rm -rf " + aSysPathByte).getStr()) == -1) OSL_FAIL( "psprint: couldn't remove spool directory" ); } |