comparison 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
comparison
equal deleted inserted replaced
3401:962e5f00744b 3402:cf31b5bacce3
229 229
230 std::streamsize size = GetStreamSize(f); 230 std::streamsize size = GetStreamSize(f);
231 content.resize(static_cast<size_t>(size)); 231 content.resize(static_cast<size_t>(size));
232 if (size != 0) 232 if (size != 0)
233 { 233 {
234 f.read(reinterpret_cast<char*>(&content[0]), size); 234 f.read(&content[0], size);
235 } 235 }
236 236
237 f.close(); 237 f.close();
238 } 238 }
239 239
272 } 272 }
273 273
274 header.resize(headerSize); 274 header.resize(headerSize);
275 if (headerSize != 0) 275 if (headerSize != 0)
276 { 276 {
277 f.read(reinterpret_cast<char*>(&header[0]), headerSize); 277 f.read(&header[0], headerSize);
278 } 278 }
279 279
280 f.close(); 280 f.close();
281 281
282 return full; 282 return full;