diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 18:27:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 22:04:26 +0100 |
commit | f53172a1141f7bb3c0950f1fe00800b633846ec4 (patch) | |
tree | 2bcf48b1e95eceede8125a636af498dbcaa83c1c /oox/qa/unit/CryptoTest.cxx | |
parent | 1f43e2071f5aba897946028dbc8c86c6b00825df (diff) |
Extended loplugin:ostr: oox
Change-Id: Ic3ee80433571767dba9de1ecfb00d2d96beae4db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159690
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox/qa/unit/CryptoTest.cxx')
-rw-r--r-- | oox/qa/unit/CryptoTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/qa/unit/CryptoTest.cxx b/oox/qa/unit/CryptoTest.cxx index 290fce38eb4b..be04c928045e 100644 --- a/oox/qa/unit/CryptoTest.cxx +++ b/oox/qa/unit/CryptoTest.cxx @@ -74,7 +74,7 @@ CryptoTest::~CryptoTest() void CryptoTest::testCryptoHash() { // Check examples from Wikipedia (https://en.wikipedia.org/wiki/HMAC) - OString aContentString("The quick brown fox jumps over the lazy dog"); + OString aContentString("The quick brown fox jumps over the lazy dog"_ostr); std::vector<sal_uInt8> aContent(aContentString.getStr(), aContentString.getStr() + aContentString.getLength()); std::vector<sal_uInt8> aKey = { 'k', 'e', 'y' }; @@ -145,7 +145,7 @@ void CryptoTest::testStandard2007() SvMemoryStream aUnencryptedInput; SvMemoryStream aEncryptedStream; - OString aTestString = "1234567890ABCDEFG"; + OString aTestString = "1234567890ABCDEFG"_ostr; aUnencryptedInput.WriteBytes(aTestString.getStr(), aTestString.getLength() + 1); aUnencryptedInput.Seek(STREAM_SEEK_TO_BEGIN); @@ -418,7 +418,7 @@ void CryptoTest::testAgileEncryptingAndDecrypting() SvMemoryStream aEncryptionInfo; SvMemoryStream aEncryptedStream; - OString aTestString = "1234567890ABCDEFGH"; + OString aTestString = "1234567890ABCDEFGH"_ostr; { oox::crypto::AgileEngine aEngine; |