| 101 | } |
| 102 | |
| 103 | void init(const GuardObjectNotifier& constNotifier) { |
| 104 | /* |
| 105 | * constNotifier is passed as a const reference so that we can pass a |
| 106 | * temporary, but we really intend it as non-const. |
| 107 | */ |
| 108 | GuardObjectNotifier& notifier = const_cast<GuardObjectNotifier&>(constNotifier); |
| 109 | notifier.setStatementDone(&statementDone); |
| 110 | } |
| 111 | }; |
| 112 | |
| 113 | } /* namespace detail */ |