diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-25 15:00:10 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-26 07:43:13 +0000 |
commit | 30d8216ba3b471df7276abcd8c8744cd426e6967 (patch) | |
tree | 28b092f04e6e0674f783799c90c743c2f9224ee3 /vcl/unx/generic/print/printerjob.cxx | |
parent | 2d162b1c70c1bc16d682b74ee1d0b13a9a80717d (diff) |
loplugin:unuseddefaultparam in vcl/
Change-Id: Ic09d160ed6e3cdcd95bc04844ee8f20cfcb286ec
Reviewed-on: https://gerrit.libreoffice.org/22698
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/unx/generic/print/printerjob.cxx')
-rw-r--r-- | vcl/unx/generic/print/printerjob.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/unx/generic/print/printerjob.cxx b/vcl/unx/generic/print/printerjob.cxx index f740514c4013..9266c820a584 100644 --- a/vcl/unx/generic/print/printerjob.cxx +++ b/vcl/unx/generic/print/printerjob.cxx @@ -52,17 +52,15 @@ namespace psp { bool -AppendPS (FILE* pDst, osl::File* pSrc, unsigned char* pBuffer, - sal_uInt32 nBlockSize = nBLOCKSIZE) +AppendPS (FILE* pDst, osl::File* pSrc, unsigned char* pBuffer) { + sal_uInt32 nBlockSize = nBLOCKSIZE; if ((pDst == nullptr) || (pSrc == nullptr)) return false; if (pSrc->setPos(osl_Pos_Absolut, 0) != osl::FileBase::E_None) return false; - if (nBlockSize == 0) - nBlockSize = nBLOCKSIZE; if (pBuffer == nullptr) pBuffer = static_cast<unsigned char*>(alloca (nBlockSize)); |