From 0a55ca6741b05bd628e7c670e2c281d4d969ffdf Mon Sep 17 00:00:00 2001 From: Logan Drescher Date: Fri, 26 Jan 2024 14:56:42 -0500 Subject: [PATCH] Clarified SimulationMessage Constructor --- VCellMessaging/src/SimulationMessaging.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/VCellMessaging/src/SimulationMessaging.cpp b/VCellMessaging/src/SimulationMessaging.cpp index 8ea4bb40..938c467e 100644 --- a/VCellMessaging/src/SimulationMessaging.cpp +++ b/VCellMessaging/src/SimulationMessaging.cpp @@ -43,22 +43,18 @@ static const double WORKEREVENT_MESSAGE_MIN_TIME_SECONDS = 15.0; SimulationMessaging *SimulationMessaging::m_inst = NULL; -SimulationMessaging::SimulationMessaging() - :events( ) - { - bStopRequested = false; +SimulationMessaging::SimulationMessaging(){ + this->bStopRequested = false; #ifdef USE_MESSAGING - m_taskID = -1; - bStarted = false; + this->m_taskID = -1; + this->bStarted = false; #endif - workerEventOutputMode = WORKEREVENT_OUTPUT_MODE_STDOUT; + this->workerEventOutputMode = WORKEREVENT_OUTPUT_MODE_STDOUT; } #ifdef USE_MESSAGING SimulationMessaging::SimulationMessaging(const char* broker, const char* smqusername, const char* passwd, const char*qname, - const char* tname, const char* vcusername, int simKey, int jobIndex, int taskID, int ttl_low, int ttl_high) - :events( ) -{ + const char* tname, const char* vcusername, int simKey, int jobIndex, int taskID, int ttl_low, int ttl_high){ m_broker = const_cast(broker); m_smqusername = const_cast( smqusername ); m_password = const_cast(passwd );