From 63b85344c590701a77466ff371c9617fdb26adb0 Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Wed, 22 May 2024 11:49:54 +0100 Subject: [PATCH] WIP Signed-off-by: Shamser Ahmed --- dali/base/sysinfologger.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dali/base/sysinfologger.cpp b/dali/base/sysinfologger.cpp index ded82d4830c..07d8feb2c90 100644 --- a/dali/base/sysinfologger.cpp +++ b/dali/base/sysinfologger.cpp @@ -68,7 +68,7 @@ class CSysInfoLoggerMsg : implements ISysInfoLoggerMsg CSysInfoLoggerMsg & set(IPropertyTree & ptree, IPropertyTree & _root, bool _updateable) { msgPtree.setown(&ptree); - root.set(&_root); + root.set(LINK(&_root)); updateable = _updateable; return * this; } @@ -412,13 +412,13 @@ class CSysInfoLoggerMsgIterator : public CInterface, implements ISysInfoLoggerMs CSysInfoLoggerMsgIterator(ISysInfoLoggerMsgFilter * _filter, bool _updateable=false) : filter(_filter), updateable(_updateable) { } - virtual ISysInfoLoggerMsg & query() override + CSysInfoLoggerMsg & queryInfoLoggerMsg() { return infoMsg.set(msgIter->get(), *(root.get()), updateable); } - CSysInfoLoggerMsg & queryInfoLoggerMsg() + virtual ISysInfoLoggerMsg & query() override { - return infoMsg.set(msgIter->get(), *(root.get()), updateable); + return queryInfoLoggerMsg(); } virtual bool first() override { @@ -608,7 +608,7 @@ unsigned deleteOlderThanLogSysInfoMsg(bool visibleOnly, bool hiddenOnly, unsigne return count; } -#ifdef _USE_CPPUNIT +#ifdef _USE_CPPUNIT0 #include "unittests.hpp" #define SOURCE_CPPUNIT "cppunit"