X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpoll.h;h=0f97cb100e208233e55d13aac73d1178726ab59a;hb=49c1f3c3ffdf318579a809f3f800442c0c76c818;hp=6ac6149b155b1634b9835a87233342e51fdd25b1;hpb=c0861d1f8e3869f058bc8b152cd35a08e5b03e73;p=libs%2Fcore.git diff --git a/source/poll.h b/source/poll.h index 6ac6149..0f97cb1 100644 --- a/source/poll.h +++ b/source/poll.h @@ -1,9 +1,3 @@ -/* $Id$ - -This file is part of libmspio -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ #ifndef MSP_IO_POLL_H_ #define MSP_IO_POLL_H_ @@ -23,21 +17,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(e)|static_cast(f)); } inline PollEvent operator&(PollEvent e, PollEvent f) -{ return PollEvent((int)e&(int)f); } +{ return PollEvent(static_cast(e)&static_cast(f)); } inline PollEvent operator~(PollEvent e) -{ return PollEvent(~(int)e); } +{ return PollEvent(~static_cast(e)); } class Poller {