Skip to content

Commit 53781f7

Browse files
committed
Minor code fix to constructor arg
1 parent 128a1ac commit 53781f7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Example CMake command line to create project build files:
22
#
33
# *** Windows ***
4-
# cmake -G "Visual Studio 17 2022" -A Win32 -B ../StdWorkerThreadBuild -S .
4+
# cmake -G "Visual Studio 17 2022" -A Win32 -B Build -S .
55
#
66
# *** Linux ***
7-
# cmake -G "Unix Makefiles" -B ../StdWorkerThreadBuild -S .
7+
# cmake -G "Unix Makefiles" -B Build -S .
88

99
# Specify the minimum CMake version required
1010
cmake_minimum_required(VERSION 3.10)

WorkerThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct ThreadMsg
2222
//----------------------------------------------------------------------------
2323
// WorkerThread
2424
//----------------------------------------------------------------------------
25-
WorkerThread::WorkerThread(const char* threadName) : m_thread(nullptr), m_timerExit(false), THREAD_NAME(threadName)
25+
WorkerThread::WorkerThread(const std::string& threadName) : m_thread(nullptr), m_timerExit(false), THREAD_NAME(threadName)
2626
{
2727
}
2828

WorkerThread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class WorkerThread
2222
{
2323
public:
2424
/// Constructor
25-
WorkerThread(const char* threadName);
25+
WorkerThread(const std::string& threadName);
2626

2727
/// Destructor
2828
~WorkerThread();

0 commit comments

Comments
 (0)