diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2012-07-25 20:03:22 +0200 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@gmail.com> | 2012-07-27 20:19:13 +0200 |
commit | d6c284e4b146a44ba69a96836c59a98d077bb934 (patch) | |
tree | 13f4f278cd9642eadcbadbc84581573aafb28c58 /sal/inc | |
parent | 5dbbe223c8586bd653685d27c664aa8395632e4a (diff) |
Use memset and memcpy insteadof rtl_zeroMemory and rtl_copyMemory in sal
Change-Id: I4f9649ca61c988d425b59e41549d1c46bb808f2c
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/osl/file.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sal/inc/osl/file.hxx b/sal/inc/osl/file.hxx index e93682d10827..431685a5cc1d 100644 --- a/sal/inc/osl/file.hxx +++ b/sal/inc/osl/file.hxx @@ -31,6 +31,8 @@ #include "sal/config.h" +#include <string.h> + #include <cassert> #include <osl/time.h> @@ -444,7 +446,7 @@ public: VolumeInfo( sal_uInt32 nMask ): _nMask( nMask ) { _aInfo.uStructSize = sizeof( oslVolumeInfo ); - rtl_zeroMemory( &_aInfo.uValidFields, sizeof( oslVolumeInfo ) - sizeof( sal_uInt32 ) ); + memset( &_aInfo.uValidFields, 0, sizeof( oslVolumeInfo ) - sizeof( sal_uInt32 ) ); _aInfo.pDeviceHandle = &_aDevice._aHandle; } @@ -692,7 +694,7 @@ public: FileStatus( sal_uInt32 nMask ): _nMask( nMask ) { _aStatus.uStructSize = sizeof( oslFileStatus ); - rtl_zeroMemory( &_aStatus.uValidFields, sizeof( oslFileStatus ) - sizeof( sal_uInt32 ) ); + memset( &_aStatus.uValidFields, 0, sizeof( oslFileStatus ) - sizeof( sal_uInt32 ) ); } /** Destructor. |