Returns true if a ScreenTime has been set for this present.
| 46 | |
| 47 | // Returns true if a ScreenTime has been set for this present. |
| 48 | static inline bool HasScreenTime(std::shared_ptr<PresentEvent> const& p) |
| 49 | { |
| 50 | for (auto const& pr : p->Displayed) { |
| 51 | if (pr.second != 0) { |
| 52 | return true; |
| 53 | } |
| 54 | } |
| 55 | return false; |
| 56 | } |
| 57 | |
| 58 | // Set a ScreenTime for this present. |
| 59 | // |
no outgoing calls
no test coverage detected