summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-04-29 00:13:32 -0400
committerJeffrey Walton <noloader@gmail.com>2019-04-29 00:13:32 -0400
commita11ac1e879732fe534e11514782e6ef1ecfea40d (patch)
treeb14a85230f2af35adc300216b21471aa49674c12 /datatest.cpp
parent38a4bb55cf69f720fa52c9b28bbc43f86f1c5454 (diff)
downloadcryptopp-git-a11ac1e879732fe534e11514782e6ef1ecfea40d.tar.gz
Use ConstBytePtr in TestDataNameValuePairs (GH #827)
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp2
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);