Use ConstBytePtr in TestDataNameValuePairs (GH #827)

This commit is contained in:
Jeffrey Walton 2019-04-29 00:13:32 -04:00
parent 38a4bb55cf
commit a11ac1e879
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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);