diff --git a/dali/base/sysinfologger.cpp b/dali/base/sysinfologger.cpp index bff0b936e87..bbb1107a985 100644 --- a/dali/base/sysinfologger.cpp +++ b/dali/base/sysinfologger.cpp @@ -81,7 +81,7 @@ class CSysInfoLoggerMsg : implements ISysInfoLoggerMsg { msgPtree.setown(createPTree(MSG_NODE)); msgPtree->setPropInt64(ATTR_ID, id); - msgPtree->setPropBool(ATTR_HIDDEN, false); + msgPtree->setPropBool(ATTR_HIDDEN, hidden); msgPtree->setPropInt64(ATTR_TIMESTAMP, ts); msgPtree->setPropInt(ATTR_CODE, code); msgPtree->setProp(ATTR_AUDIENCE, LogMsgAudienceToFixString(cat.queryAudience())); @@ -343,18 +343,6 @@ class CSysInfoLoggerMsgFilter : public CSimpleInterfaceOfqueryRoot(); unsigned id = root->getPropInt(ATTR_NEXTID, 1); - if (id==INT_MAX) // wrap id to reuse id numbers (shouldn't wrap but no harm in doing this for safety) + if (id==UINT_MAX) // wrap id to reuse id numbers (shouldn't wrap but no harm in doing this for safety) id=1; root->setPropInt(ATTR_NEXTID, id+1); @@ -580,7 +570,7 @@ unsigned deleteLogSysInfoMsg(IConstSysInfoLoggerMsgFilter * msgFilter) } IPropertyTree * root = conn->queryRoot(); unsigned count = 0; - for (auto xpath: deleteXpathList) + for (auto & xpath: deleteXpathList) { if (root->removeProp(xpath.c_str())); ++count; @@ -677,7 +667,7 @@ unsigned deleteOlderThanLogSysInfoMsg(bool visibleOnly, bool hiddenOnly, unsigne } unsigned count = 0; - for (auto xpath: deleteXpathList) + for (auto & xpath: deleteXpathList) { if (root->removeProp(xpath.c_str())); ++count; diff --git a/dali/base/sysinfologger.hpp b/dali/base/sysinfologger.hpp index c8467bdd0f5..488923bdfed 100644 --- a/dali/base/sysinfologger.hpp +++ b/dali/base/sysinfologger.hpp @@ -52,9 +52,6 @@ interface IConstSysInfoLoggerMsgFilter : public IInterface virtual unsigned queryEndYear() const = 0; virtual unsigned queryEndMonth() const = 0; virtual unsigned queryEndDay() const = 0; - virtual unsigned queryMatchYear() const = 0; - virtual unsigned queryMatchMonth() const = 0; - virtual unsigned queryMatchDay() const = 0; virtual const char * queryMatchSource() const = 0; virtual LogMsgCode queryMatchCode() const = 0; virtual LogMsgAudience queryMatchAudience() const = 0;