From c4bedb32c0547e8f6b67ece566050073726120f5 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 18 Apr 2011 18:35:38 +0000 Subject: Maintainer mode warning cleanups, mostly for C style casts which I added to the flags here. --- src/cms/cms_dec.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cms/cms_dec.cpp') diff --git a/src/cms/cms_dec.cpp b/src/cms/cms_dec.cpp index c86e1d0ae..a9f4e69d9 100644 --- a/src/cms/cms_dec.cpp +++ b/src/cms/cms_dec.cpp @@ -86,7 +86,9 @@ std::string CMS_Decoder::get_data() const { if(layer_type() != DATA) throw Invalid_State("CMS: Cannot retrieve data from non-DATA layer"); - return std::string((const char*)&data[0], data.size()); + + return std::string(reinterpret_cast(&data[0]), + data.size()); } /* -- cgit v1.2.3