]> git.tdb.fi Git - libs/core.git/blobdiff - source/poll.h
Style update: spaces around assignments
[libs/core.git] / source / poll.h
index 6ac6149b155b1634b9835a87233342e51fdd25b1..3566b92569c6103ffa502599fb9aded1210ba631 100644 (file)
@@ -23,21 +23,21 @@ class Base;
 
 enum PollEvent
 {
-       P_NONE=0,
-       P_INPUT=1,
-       P_PRIO=2,
-       P_OUTPUT=4,
-       P_ERROR=8
+       P_NONE = 0,
+       P_INPUT = 1,
+       P_PRIO = 2,
+       P_OUTPUT = 4,
+       P_ERROR = 8
 };
 
 inline PollEvent operator|(PollEvent e, PollEvent f)
-{ return PollEvent((int)e|(int)f); }
+{ return PollEvent(static_cast<int>(e)|static_cast<int>(f)); }
 
 inline PollEvent operator&(PollEvent e, PollEvent f)
-{ return PollEvent((int)e&(int)f); }
+{ return PollEvent(static_cast<int>(e)&static_cast<int>(f)); }
 
 inline PollEvent operator~(PollEvent e)
-{ return PollEvent(~(int)e); }
+{ return PollEvent(~static_cast<int>(e)); }
 
 class Poller
 {