diff options
Diffstat (limited to 'libs/incident/src/IncidentReportArgs.cpp')
-rw-r--r-- | libs/incident/src/IncidentReportArgs.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/incident/src/IncidentReportArgs.cpp b/libs/incident/src/IncidentReportArgs.cpp index 4268638f62cd..9d8a98338ef0 100644 --- a/libs/incident/src/IncidentReportArgs.cpp +++ b/libs/incident/src/IncidentReportArgs.cpp @@ -194,9 +194,13 @@ IncidentReportArgs::addHeader(const vector<uint8_t>& headerProto) } bool -IncidentReportArgs::containsSection(int section) const +IncidentReportArgs::containsSection(int section, bool specific) const { - return mAll || mSections.find(section) != mSections.end(); + if (specific) { + return mSections.find(section) != mSections.end(); + } else { + return mAll || mSections.find(section) != mSections.end(); + } } void |