]> git.tdb.fi Git - libs/core.git/blobdiff - source/mode.h
Convert C-style casts to C++-style
[libs/core.git] / source / mode.h
index 1d944b11b3326bd64bf0e3ad3aeebd0d99d2492a..c58ecb0bd55894474b5b828859a7ea9939d5bef0 100644 (file)
@@ -21,13 +21,13 @@ enum Mode
 };
 
 inline Mode operator|(Mode m, Mode n)
-{ return Mode((int)m|(int)n); }
+{ return Mode(static_cast<int>(m)|static_cast<int>(n)); }
 
 inline Mode operator&(Mode m, Mode n)
-{ return Mode((int)m&(int)n); }
+{ return Mode(static_cast<int>(m)&static_cast<int>(n)); }
 
 inline Mode operator~(Mode m)
-{ return Mode(~(int)m); }
+{ return Mode(~static_cast<int>(m)); }
 
 } // namespace IO
 } // namespace Msp