Deleter for unique_ptr to print error_text of the controller when -log_error_text is on, then delete the controller if `delete_cntl' is true
| 212 | // Deleter for unique_ptr to print error_text of the controller when |
| 213 | // -log_error_text is on, then delete the controller if `delete_cntl' is true |
| 214 | class LogErrorTextAndDelete { |
| 215 | public: |
| 216 | explicit LogErrorTextAndDelete(bool delete_cntl = true) |
| 217 | : _delete_cntl(delete_cntl) {} |
| 218 | void operator()(Controller* c) const; |
| 219 | private: |
| 220 | bool _delete_cntl; |
| 221 | }; |
| 222 | |
| 223 | // Utility to build a temporary array. |
| 224 | // Example: |
no outgoing calls
no test coverage detected