Merge pull request #4170 from 0xB0D/master+alarms-fix

Fix alarms() out of scope
pull/4173/head
Isaac Connor 2024-10-08 15:33:28 -04:00 committed by GitHub
commit a0398dd2d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -284,8 +284,9 @@ int SOAP_ENV__Fault(struct soap *soap, char *faultcode, char *faultstring, char
#endif
void Monitor::ONVIF::SetNoteSet(Event::StringSet &noteSet) {
if (alarms.empty()) return;
#ifdef WITH_GSOAP
if (alarms.empty()) return;
std::string note = "";
for (auto it = alarms.begin(); it != alarms.end(); ++it) {
note = it->first + "/" + it->second;