summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-21 16:53:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-21 16:53:37 +0100
commite2fa592c770222344fccb0e39db3d500fc7690b5 (patch)
tree2b39cb906ea733c3591c5d179c309096773fd3c4 /filter
parent7f6f5519079e3508ac1302aa5907cfc6098c525e (diff)
clang plugin for push_back after using sized constructor
the warning is bogus for this ctor, but the clang plugin is still active in gerrit at the moment. Change-Id: Ia55260491988a12a48e49dc4962733261d13e2a1
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/mscodec.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/source/msfilter/mscodec.cxx b/filter/source/msfilter/mscodec.cxx
index ffbbd0992275..732fe8916afc 100644
--- a/filter/source/msfilter/mscodec.cxx
+++ b/filter/source/msfilter/mscodec.cxx
@@ -363,7 +363,8 @@ void MSCodec_CryptoAPI::InitKey (
sal_uInt32 saltSize = 16;
// Prepare initial data -> salt + password (in 16-bit chars)
- std::vector<sal_uInt8> initialData(pDocId, pDocId + saltSize);
+ std::vector<sal_uInt8> initialData;
+ initialData.insert(initialData.begin(), pDocId, pDocId + saltSize);
// Fill PassData into KeyData.
for (sal_Int32 nInd = 0; nInd < 16 && pPassData[nInd]; ++nInd)