Better make the zero-initialization more explicit
...if initializing these members is necessary at all; a bit hard to tell from the code. Change-Id: If15fb11b601ba3b8b5d3fdbe5c3dac01b095fb05
This commit is contained in:
parent
82ea4fdc37
commit
27728d21e4
1 changed files with 6 additions and 1 deletions
|
@ -191,9 +191,14 @@ bool DocumentDecryption::generateEncryptionKey(const OUString& rPassword)
|
|||
|
||||
bool DocumentDecryption::readAgileEncryptionInfo(Reference< XInputStream >& xInputStream)
|
||||
{
|
||||
AgileEngine* engine = new AgileEngine();
|
||||
AgileEngine* engine = new AgileEngine;
|
||||
mEngine.reset(engine);
|
||||
AgileEncryptionInfo& info = engine->getInfo();
|
||||
info.spinCount = 0;
|
||||
info.saltSize = 0;
|
||||
info.keyBits = 0;
|
||||
info.hashSize = 0;
|
||||
info.blockSize = 0;
|
||||
|
||||
Reference<XFastDocumentHandler> xFastDocumentHandler( new AgileDocumentHandler(info) );
|
||||
Reference<XFastTokenHandler> xFastTokenHandler ( new AgileTokenHandler );
|
||||
|
|
Loading…
Reference in a new issue