From 3b1577ab7eb2000a3477a0aa489b888fb1256434 Mon Sep 17 00:00:00 2001 From: lurumdare <8020186+lurumdare@users.noreply.github.com> Date: 周六, 07 9月 2019 20:40:25 +0800 Subject: [PATCH] const everywhere (#30) --- src/library/base/EventRegistry.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/library/base/EventRegistry.cpp b/src/library/base/EventRegistry.cpp index beefa29..7c21d6f 100644 --- a/src/library/base/EventRegistry.cpp +++ b/src/library/base/EventRegistry.cpp @@ -2,7 +2,7 @@ * EventRegistry.cpp * * Created on: Mar 30, 2014 - * Author: devel + * */ #include "EventRegistry.h" @@ -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); } } -- Gitblit v1.9.1