aboutsummaryrefslogtreecommitdiff
path: root/src/signals.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-12-18 08:59:16 +0000
committerMike Buland <eichlan@xagasoft.com>2009-12-18 08:59:16 +0000
commit146930268a695dcc0432599d625ec3eb7e74025e (patch)
treea944d13981ed055b337757953014ed1e2d45e19c /src/signals.h
parent0d3d73fb0cacd3d1cf7eb8b83ba87f8b740b871a (diff)
downloadlibbu++-146930268a695dcc0432599d625ec3eb7e74025e.tar.gz
libbu++-146930268a695dcc0432599d625ec3eb7e74025e.tar.bz2
libbu++-146930268a695dcc0432599d625ec3eb7e74025e.tar.xz
libbu++-146930268a695dcc0432599d625ec3eb7e74025e.zip
The OptParser still needs help banners and more helper functions, but otherwise,
it's done. It works great, and provides much flexibility and usefulness. It now relies on the input side of the Formatter class, which at the moment supports reading strings...not real useful yet... Next up, adding readers for numbers and such, then it'll be mostly complete. Also, fixed a bug when copying uninitialized signal objects.
Diffstat (limited to '')
-rw-r--r--src/signals.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/signals.h b/src/signals.h
index 075e5bf..975f6af 100644
--- a/src/signals.h
+++ b/src/signals.h
@@ -76,7 +76,7 @@ namespace Bu
76 Signal0() : pCb( NULL ) { } 76 Signal0() : pCb( NULL ) { }
77 Signal0( _Slot0<ret> *pCb ) : pCb( pCb ) { } 77 Signal0( _Slot0<ret> *pCb ) : pCb( pCb ) { }
78 Signal0( const Signal0<ret> &rSrc ) : 78 Signal0( const Signal0<ret> &rSrc ) :
79 pCb( rSrc.pCb->clone() ) { } 79 pCb( (rSrc.pCb)?(rSrc.pCb->clone()):(NULL) ) { }
80 80
81 virtual ~Signal0() { delete pCb; pCb = NULL; } 81 virtual ~Signal0() { delete pCb; pCb = NULL; }
82 82
@@ -185,7 +185,7 @@ namespace Bu
185 Signal1() : pCb( NULL ) { } 185 Signal1() : pCb( NULL ) { }
186 Signal1( _Slot1<ret, p1t> *pCb ) : pCb( pCb ) { } 186 Signal1( _Slot1<ret, p1t> *pCb ) : pCb( pCb ) { }
187 Signal1( const Signal1<ret, p1t> &rSrc ) : 187 Signal1( const Signal1<ret, p1t> &rSrc ) :
188 pCb( rSrc.pCb->clone() ) { } 188 pCb( (rSrc.pCb)?(rSrc.pCb->clone()):(NULL) ) { }
189 189
190 virtual ~Signal1() { delete pCb; pCb = NULL; } 190 virtual ~Signal1() { delete pCb; pCb = NULL; }
191 191
@@ -294,7 +294,7 @@ namespace Bu
294 Signal2() : pCb( NULL ) { } 294 Signal2() : pCb( NULL ) { }
295 Signal2( _Slot2<ret, p1t, p2t> *pCb ) : pCb( pCb ) { } 295 Signal2( _Slot2<ret, p1t, p2t> *pCb ) : pCb( pCb ) { }
296 Signal2( const Signal2<ret, p1t, p2t> &rSrc ) : 296 Signal2( const Signal2<ret, p1t, p2t> &rSrc ) :
297 pCb( rSrc.pCb->clone() ) { } 297 pCb( (rSrc.pCb)?(rSrc.pCb->clone()):(NULL) ) { }
298 298
299 virtual ~Signal2() { delete pCb; pCb = NULL; } 299 virtual ~Signal2() { delete pCb; pCb = NULL; }
300 300
@@ -403,7 +403,7 @@ namespace Bu
403 Signal3() : pCb( NULL ) { } 403 Signal3() : pCb( NULL ) { }
404 Signal3( _Slot3<ret, p1t, p2t, p3t> *pCb ) : pCb( pCb ) { } 404 Signal3( _Slot3<ret, p1t, p2t, p3t> *pCb ) : pCb( pCb ) { }
405 Signal3( const Signal3<ret, p1t, p2t, p3t> &rSrc ) : 405 Signal3( const Signal3<ret, p1t, p2t, p3t> &rSrc ) :
406 pCb( rSrc.pCb->clone() ) { } 406 pCb( (rSrc.pCb)?(rSrc.pCb->clone()):(NULL) ) { }
407 407
408 virtual ~Signal3() { delete pCb; pCb = NULL; } 408 virtual ~Signal3() { delete pCb; pCb = NULL; }
409 409
@@ -512,7 +512,7 @@ namespace Bu
512 Signal4() : pCb( NULL ) { } 512 Signal4() : pCb( NULL ) { }
513 Signal4( _Slot4<ret, p1t, p2t, p3t, p4t> *pCb ) : pCb( pCb ) { } 513 Signal4( _Slot4<ret, p1t, p2t, p3t, p4t> *pCb ) : pCb( pCb ) { }
514 Signal4( const Signal4<ret, p1t, p2t, p3t, p4t> &rSrc ) : 514 Signal4( const Signal4<ret, p1t, p2t, p3t, p4t> &rSrc ) :
515 pCb( rSrc.pCb->clone() ) { } 515 pCb( (rSrc.pCb)?(rSrc.pCb->clone()):(NULL) ) { }
516 516
517 virtual ~Signal4() { delete pCb; pCb = NULL; } 517 virtual ~Signal4() { delete pCb; pCb = NULL; }
518 518
@@ -621,7 +621,7 @@ namespace Bu
621 Signal5() : pCb( NULL ) { } 621 Signal5() : pCb( NULL ) { }
622 Signal5( _Slot5<ret, p1t, p2t, p3t, p4t, p5t> *pCb ) : pCb( pCb ) { } 622 Signal5( _Slot5<ret, p1t, p2t, p3t, p4t, p5t> *pCb ) : pCb( pCb ) { }
623 Signal5( const Signal5<ret, p1t, p2t, p3t, p4t, p5t> &rSrc ) : 623 Signal5( const Signal5<ret, p1t, p2t, p3t, p4t, p5t> &rSrc ) :
624 pCb( rSrc.pCb->clone() ) { } 624 pCb( (rSrc.pCb)?(rSrc.pCb->clone()):(NULL) ) { }
625 625
626 virtual ~Signal5() { delete pCb; pCb = NULL; } 626 virtual ~Signal5() { delete pCb; pCb = NULL; }
627 627