From 66b451751514fa881505e9465cdd8e9484fef65d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 22 Jan 2008 18:09:23 +0000 Subject: indent, don't throw in loop_ref, make urxvt compile again --- ev++.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'ev++.h') diff --git a/ev++.h b/ev++.h index 5c0693d..cd9160a 100644 --- a/ev++.h +++ b/ev++.h @@ -133,18 +133,12 @@ namespace ev { struct loop_ref { - loop_ref (EV_P) + loop_ref (EV_P) throw () #if EV_MULTIPLICITY - throw (bad_loop) : EV_AX (EV_A) - { - if (!EV_AX) - throw bad_loop (); - } -#else - throw () + : EV_AX (EV_A) +#endif { } -#endif bool operator == (const loop_ref &other) const throw () { @@ -346,12 +340,14 @@ namespace ev { }; #if EV_MULTIPLICITY - struct dynamic_loop: loop_ref + struct dynamic_loop : loop_ref { dynamic_loop (unsigned int flags = AUTO) throw (bad_loop) - : loop_ref (ev_loop_new (flags)) + : loop_ref (ev_loop_new (flags)) { + if (!EV_AX) + throw bad_loop (); } ~dynamic_loop () throw () @@ -369,7 +365,7 @@ namespace ev { }; #endif - struct default_loop: loop_ref + struct default_loop : loop_ref { default_loop (unsigned int flags = AUTO) throw (bad_loop) @@ -377,10 +373,14 @@ namespace ev { : loop_ref (ev_default_loop (flags)) #endif { -#if !EV_MULTIPLICITY - if (!ev_default_loop (flags)) - throw bad_loop (); + if ( +#if EV_MULTIPLICITY + !EV_AX +#else + !ev_default_loop (flags) #endif + ) + throw bad_loop (); } ~default_loop () throw () -- cgit v1.2.3