| 45 | template <typename Q, typename QDef> struct QueryEntity { |
| 46 | using Def = QDef; |
| 47 | Def *anyDef() { |
| 48 | Def *ret = nullptr; |
| 49 | for (auto &i : static_cast<Q *>(this)->def) { |
| 50 | ret = &i; |
| 51 | if (i.spell) |
| 52 | break; |
| 53 | } |
| 54 | return ret; |
| 55 | } |
| 56 | const Def *anyDef() const { return const_cast<QueryEntity *>(this)->anyDef(); } |
| 57 | }; |
| 58 |
no outgoing calls
no test coverage detected