Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / base / resource / data_pack.cc
index 56d74a2..934b14b 100644 (file)
@@ -200,8 +200,7 @@ base::RefCountedStaticMemory* DataPack::GetStaticMemory(
   if (!GetStringPiece(resource_id, &piece))
     return NULL;
 
-  return new base::RefCountedStaticMemory(
-      reinterpret_cast<const unsigned char*>(piece.data()), piece.length());
+  return new base::RefCountedStaticMemory(piece.data(), piece.length());
 }
 
 ResourceHandle::TextEncodingType DataPack::GetTextEncodingType() const {