X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=libs%2Fsignal%2Fsignalfwd.h;h=507c0e70ea1b52dbf9bbf3961fcf69b4cf920320;hb=b7e36c120eb1546a6c6f97f30e42ab7f9a559c61;hp=79597e218601852bc219e2fe525bef55d27806ab;hpb=bfc8a12a6b315ae261101a34db8ba1b682c67bb7;p=xonotic%2Fnetradiant.git diff --git a/libs/signal/signalfwd.h b/libs/signal/signalfwd.h index 79597e21..507c0e70 100644 --- a/libs/signal/signalfwd.h +++ b/libs/signal/signalfwd.h @@ -1,5 +1,5 @@ -#if !defined(INCLUDED_SIGNALFWD_H) +#if !defined( INCLUDED_SIGNALFWD_H ) #define INCLUDED_SIGNALFWD_H class SignalHandler; @@ -18,29 +18,25 @@ class Opaque; template class Handle { - Type* p; +Type* p; public: - Handle() : p(0) - { - } - explicit Handle(Type* p) : p(p) - { - } - Type* get() const - { - return p; - } - bool isNull() const - { - return p == 0; - } +Handle() : p( 0 ){ +} +explicit Handle( Type* p ) : p( p ){ +} +Type* get() const { + return p; +} +bool isNull() const { + return p == 0; +} }; template class SignalFwd { public: - typedef Handle< Opaque > handler_id_type; +typedef Handle< Opaque > handler_id_type; }; typedef SignalFwd::handler_id_type SignalHandlerId;