diff Core/SystemToolbox.cpp @ 3402:cf31b5bacce3

removing unneeded casts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 15:06:17 +0200
parents 4e43e67f8ecf
children c08bb6ac3b7f
line wrap: on
line diff
--- a/Core/SystemToolbox.cpp	Fri Jun 07 14:58:27 2019 +0200
+++ b/Core/SystemToolbox.cpp	Fri Jun 07 15:06:17 2019 +0200
@@ -231,7 +231,7 @@
     content.resize(static_cast<size_t>(size));
     if (size != 0)
     {
-      f.read(reinterpret_cast<char*>(&content[0]), size);
+      f.read(&content[0], size);
     }
 
     f.close();
@@ -274,7 +274,7 @@
     header.resize(headerSize);
     if (headerSize != 0)
     {
-      f.read(reinterpret_cast<char*>(&header[0]), headerSize);
+      f.read(&header[0], headerSize);
     }
 
     f.close();