diff options
Diffstat (limited to 'src/signals.h')
-rw-r--r-- | src/signals.h | 12 |
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 | ||