Skip to content

Instantly share code, notes, and snippets.

@cschep
Created January 27, 2017 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cschep/d22d1fd89a88daf67e6034741e33111d to your computer and use it in GitHub Desktop.
Save cschep/d22d1fd89a88daf67e6034741e33111d to your computer and use it in GitHub Desktop.
std::vector<long> Journal::shotDatesForCurrentMethod() {
Method *current = currentMethod(false);
std::vector<long> dates;
if (current == nullptr || current->type() != Method::MethodType::shot) {
return dates;
}
for (long date : shotDates) {
if (date >= current->startDateNum()) {
dates.push_back(date);
}
}
return dates;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment