Convert C-style casts to C++-style
[libs/core.git] / source / file.h
index df5105daaade7f83a1496f80bb8476cbd75eb40a..4e86e29642c47dd35b52b0978b6b7be7b38d05f8 100644 (file)
@@ -55,13 +55,13 @@ protected:
 };
 
 inline File::CreateMode operator|(File::CreateMode m, File::CreateMode n)
-{ return File::CreateMode((int)m|(int)n); }
+{ return File::CreateMode(static_cast<int>(m)|static_cast<int>(n)); }
 
 inline File::CreateMode operator&(File::CreateMode m, File::CreateMode n)
-{ return File::CreateMode((int)m&(int)n); }
+{ return File::CreateMode(static_cast<int>(m)&static_cast<int>(n)); }
 
 inline File::CreateMode operator~(File::CreateMode m)
-{ return File::CreateMode(~(int)m); }
+{ return File::CreateMode(~static_cast<int>(m)); }
 
 typedef Filtered<File, Buffered> BufferedFile;