lurumdare
2019-09-07 88ee57b6320822dd54429128489f9f2a388f3331
src/library/base/EventRegistry.cpp
@@ -2,7 +2,7 @@
 * EventRegistry.cpp
 *
 *  Created on: Mar 30, 2014
 *      Author: devel
 *
 */
#include "EventRegistry.h"
@@ -51,7 +51,7 @@
}
AuditEvent const * EventRegistry::getLastFailure() const {
   const AuditEvent* result = NULL;
   const AuditEvent* result = nullptr;
   if (logs.size() == 0) {
      return result;
   }
@@ -79,7 +79,7 @@
}
void EventRegistry::addError(EVENT_TYPE event) {
   addEvent(event, SVRT_ERROR);
   this->addEvent(event, SVRT_ERROR);
}
void EventRegistry::addEvent(EVENT_TYPE event, SEVERITY severity) {
@@ -113,7 +113,7 @@
}
void EventRegistry::exportLastEvents(AuditEvent* auditEvents, int nlogs) {
   int sizeToCopy = min(nlogs, (int) logs.size());
   const int sizeToCopy = min(nlogs, (int) logs.size());
   std::copy(logs.begin(), logs.begin() + sizeToCopy, auditEvents);
}
}