aboutsummaryrefslogtreecommitdiffstats
path: root/src/cms/cms_dec.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-04-18 18:35:38 +0000
committerlloyd <[email protected]>2011-04-18 18:35:38 +0000
commitc4bedb32c0547e8f6b67ece566050073726120f5 (patch)
tree17183000888bda5156637360d10d9901ced3565b /src/cms/cms_dec.cpp
parent06a32c91e639cc2b0c636553a8aa395aa90d4d37 (diff)
Maintainer mode warning cleanups, mostly for C style casts which I
added to the flags here.
Diffstat (limited to 'src/cms/cms_dec.cpp')
-rw-r--r--src/cms/cms_dec.cpp4
1 files changed, 3 insertions, 1 deletions
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<const char*>(&data[0]),
+ data.size());
}
/*