50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
delete _qEvent;
[super dealloc];
}
- (void)takeOwnership
{
OF_ENSURE(!_ownsEvent);
_ownsEvent = true;
}
- (void)giveUpOwnership
{
OF_ENSURE(_ownsEvent);
_ownsEvent = false;
}
- (void)accept
{
_qEvent->accept();
}
|
|
|
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
delete _qEvent;
[super dealloc];
}
- (void)takeOwnership
{
OFEnsure(!_ownsEvent);
_ownsEvent = true;
}
- (void)giveUpOwnership
{
OFEnsure(_ownsEvent);
_ownsEvent = false;
}
- (void)accept
{
_qEvent->accept();
}
|