summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter_impl2.cxx
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-08-13 11:21:13 +0200
committerArnaud Versini <arnaud.versini@gmail.com>2012-08-14 16:18:05 +0200
commit9a3d8ed28dc44743b6715cd8bac39b55762cba11 (patch)
tree2755682e3e28998f7df4c2fa4fde1d7235e8c872 /vcl/source/gdi/pdfwriter_impl2.cxx
parentd26599c3e1dea940439985b46b727cfc22b37c38 (diff)
Replace usage of rtl/memory.h in vcl with equivalent from string.h
Change-Id: If8d460189c57f9c02923019e95bf47db1d96c716
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl2.cxx')
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index d7998c9b1264..16f806bf6c7b 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -1234,8 +1234,8 @@ uno::Reference< beans::XMaterialHolder > PDFWriterImpl::initEncryption( const rt
xResult.clear();
// trash temporary padded cleartext PWDs
- rtl_zeroMemory( aPadOPW, sizeof(aPadOPW) );
- rtl_zeroMemory( aPadUPW, sizeof(aPadUPW) );
+ memset( aPadOPW, 0, sizeof(aPadOPW) );
+ memset( aPadUPW, 0, sizeof(aPadUPW) );
}
return xResult;
@@ -1317,7 +1317,7 @@ void PDFWriterImpl::padPassword( const rtl::OUString& i_rPassword, sal_uInt8* o_
o_pPaddedPW[i] = s_nPadString[y];
// trash memory of temporary clear text password
- rtl_zeroMemory( (sal_Char*)aString.getStr(), aString.getLength() );
+ memset( (sal_Char*)aString.getStr(), 0, aString.getLength() );
}
/**********************************