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:
Stephan Bergmann 2017-02-22 21:22:34 +01:00
parent 82ea4fdc37
commit 27728d21e4

View file

@ -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 );