From a11ac1e879732fe534e11514782e6ef1ecfea40d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 29 Apr 2019 00:13:32 -0400 Subject: [PATCH] Use ConstBytePtr in TestDataNameValuePairs (GH #827) --- datatest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(pValue)->Assign(BytePtr(m_temp), BytePtrSize(m_temp), false); + reinterpret_cast(pValue)->Assign(ConstBytePtr(m_temp), BytePtrSize(m_temp), false); } else throw ValueTypeMismatch(name, typeid(std::string), valueType);