diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-04-29 00:13:32 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-04-29 00:13:32 -0400 |
commit | a11ac1e879732fe534e11514782e6ef1ecfea40d (patch) | |
tree | b14a85230f2af35adc300216b21471aa49674c12 /datatest.cpp | |
parent | 38a4bb55cf69f720fa52c9b28bbc43f86f1c5454 (diff) | |
download | cryptopp-git-a11ac1e879732fe534e11514782e6ef1ecfea40d.tar.gz |
Use ConstBytePtr in TestDataNameValuePairs (GH #827)
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datatest.cpp b/datatest.cpp index 310603b1..8d7503e2 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -281,7 +281,7 @@ public: {
m_temp.clear();
PutDecodedDatumInto(m_data, name, StringSink(m_temp).Ref());
- reinterpret_cast<ConstByteArrayParameter *>(pValue)->Assign(BytePtr(m_temp), BytePtrSize(m_temp), false);
+ reinterpret_cast<ConstByteArrayParameter *>(pValue)->Assign(ConstBytePtr(m_temp), BytePtrSize(m_temp), false);
}
else
throw ValueTypeMismatch(name, typeid(std::string), valueType);
|