[Libreoffice-commits] core.git: filter/source
Stephan Bergmann
sbergman at redhat.com
Wed Oct 26 17:52:06 UTC 2016
filter/source/msfilter/mscodec.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 0b7bc00ae30473a26a5812798a7854511a460310
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Oct 26 16:31:40 2016 +0200
Revert "clang plugin for push_back after using sized constructor"
This reverts commit e2fa592c770222344fccb0e39db3d500fc7690b5, sould no longer be
necessary after 3be8c4c2bb919d69a2812c76edbaeaa41d149edb "The badvectorinit
plug-in probably can be retired".
Change-Id: I26fadaf002e8e21144a7e888a80bb40eb017a64b
Reviewed-on: https://gerrit.libreoffice.org/30296
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
Tested-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/filter/source/msfilter/mscodec.cxx b/filter/source/msfilter/mscodec.cxx
index 3cb7f44..c57559b 100644
--- a/filter/source/msfilter/mscodec.cxx
+++ b/filter/source/msfilter/mscodec.cxx
@@ -364,8 +364,7 @@ void MSCodec_CryptoAPI::InitKey (
sal_uInt32 saltSize = 16;
// Prepare initial data -> salt + password (in 16-bit chars)
- std::vector<sal_uInt8> initialData;
- initialData.insert(initialData.begin(), pDocId, pDocId + saltSize);
+ std::vector<sal_uInt8> initialData(pDocId, pDocId + saltSize);
// Fill PassData into KeyData.
for (sal_Int32 nInd = 0; nInd < 16 && pPassData[nInd]; ++nInd)
More information about the Libreoffice-commits
mailing list