diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 15:32:30 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 16:36:56 -0600 |
commit | 1b6e87fc232e78790d45a54b7a4ac7fe02d2c587 (patch) | |
tree | 6440d27f3f09c590869f6a8bd921aaa617274067 /include/osl | |
parent | 4c2f8fd74c43a7a85a931bfcf15654af12f082a8 (diff) |
remove confusing and potentially dangerous premature-optimization
Change-Id: Ia23f591519eba257441b725a219a1eddda937c39
Diffstat (limited to 'include/osl')
-rw-r--r-- | include/osl/file.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/osl/file.hxx b/include/osl/file.hxx index 2518e5fdc656..a53e3d77555f 100644 --- a/include/osl/file.hxx +++ b/include/osl/file.hxx @@ -432,10 +432,11 @@ public: Set of flags decribing the demanded information. */ - VolumeInfo( sal_uInt32 nMask ): _nMask( nMask ) + VolumeInfo( sal_uInt32 nMask ) + : _nMask( nMask ) { + memset( &_aInfo, 0, sizeof( oslVolumeInfo )); _aInfo.uStructSize = sizeof( oslVolumeInfo ); - memset( &_aInfo.uValidFields, 0, sizeof( oslVolumeInfo ) - sizeof( sal_uInt32 ) ); _aInfo.pDeviceHandle = &_aDevice._aHandle; } |