Omg somethings work

This commit is contained in:
ackimixs
2024-03-27 17:24:26 +01:00
parent 8217fdf396
commit 25c72a0634
3 changed files with 14 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
#include "MyClient.h"
MyClient::MyClient(bool* tiretteState, const char* host, int port) : TCPClient(host, port), tiretteState(tiretteState)
MyClient::MyClient(const char* host, int port) : TCPClient(host, port), tiretteState(false)
{
}
@@ -17,7 +17,7 @@ void MyClient::handleMessage(const std::string& message)
}
}
void MyClient::setTiretteState(bool* tiretteState)
void MyClient::setTiretteState(bool tiretteState)
{
this->tiretteState = tiretteState;
}