diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-26 16:31:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-26 17:51:45 +0000 |
commit | 0b7bc00ae30473a26a5812798a7854511a460310 (patch) | |
tree | 322beb6e8f8901d769af68bee758221cf3d7aefa /filter | |
parent | 0ebe9fab18e732468d2b9d53dddf9f266411a0e5 (diff) |
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@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/mscodec.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/source/msfilter/mscodec.cxx b/filter/source/msfilter/mscodec.cxx index 3cb7f44cea34..c57559bfdd28 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) |