summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/print
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-14 16:41:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-15 11:02:53 +0200
commit4c4d9a482b93440fd3388ffa1715e66d1f391fea (patch)
treedc599ac00d6ca5c3288e4e7053c02c0d62902346 /vcl/unx/generic/print
parent256480b8b80769149652bb62f401672ee8fafe1f (diff)
loplugin:sequentialassign in vcl
Change-Id: I530b81b3258a6e1c1456da53bfe1285f14aee712 Reviewed-on: https://gerrit.libreoffice.org/70734 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/print')
-rw-r--r--vcl/unx/generic/print/common_gfx.cxx4
-rw-r--r--vcl/unx/generic/print/printerjob.cxx4
2 files changed, 2 insertions, 6 deletions
diff --git a/vcl/unx/generic/print/common_gfx.cxx b/vcl/unx/generic/print/common_gfx.cxx
index a92d366ccd1d..b2bde146b3bc 100644
--- a/vcl/unx/generic/print/common_gfx.cxx
+++ b/vcl/unx/generic/print/common_gfx.cxx
@@ -984,9 +984,7 @@ void
PrinterGfx::PSHexString (const unsigned char* pString, sal_Int16 nLen)
{
OStringBuffer pHexString;
- sal_Int32 nChar = 0;
-
- nChar = psp::appendStr ("<", pHexString);
+ sal_Int32 nChar = psp::appendStr ("<", pHexString);
for (int i = 0; i < nLen; i++)
{
if (nChar >= (nMaxTextColumn - 1))
diff --git a/vcl/unx/generic/print/printerjob.cxx b/vcl/unx/generic/print/printerjob.cxx
index 7cf15556476e..f79e174225bf 100644
--- a/vcl/unx/generic/print/printerjob.cxx
+++ b/vcl/unx/generic/print/printerjob.cxx
@@ -312,10 +312,8 @@ PrinterJob::StartJob (
"%!PS-Adobe-3.0\n"
"%%BoundingBox: (atend)\n" );
- OUString aFilterWS;
-
// Creator (this application)
- aFilterWS = WhitespaceToSpace( rAppName, false );
+ OUString aFilterWS = WhitespaceToSpace( rAppName, false );
WritePS (mpJobHeader.get(), "%%Creator: (");
WritePS (mpJobHeader.get(), aFilterWS);
WritePS (mpJobHeader.get(), ")\n");