Index: src/libchcore/Tests/TestsTSharedMemory.cpp =================================================================== diff -u -r07f5ed57f11f0b908313f692fc4830401f0db552 -rf6e8ab2ff52d909ea3f4ee7791a621c737fd5ca1 --- src/libchcore/Tests/TestsTSharedMemory.cpp (.../TestsTSharedMemory.cpp) (revision 07f5ed57f11f0b908313f692fc4830401f0db552) +++ src/libchcore/Tests/TestsTSharedMemory.cpp (.../TestsTSharedMemory.cpp) (revision f6e8ab2ff52d909ea3f4ee7791a621c737fd5ca1) @@ -64,7 +64,7 @@ TEST(TestsTSharedMemory, Create_FromBufferZeroSize) { - char* pszData = "SomeString"; + const char* pszData = "SomeString"; TSharedMemory memory; EXPECT_THROW(memory.Create(L"UnitTestsSharedMemoryName", (BYTE*)pszData, 0), TCoreException); } @@ -83,7 +83,7 @@ TEST(TestsTSharedMemory, Create_FromEmptyBuffer) { - char* pszData = ""; + const char* pszData = ""; TSharedMemory memory; memory.Create(L"UnitTestsSharedMemoryName", (BYTE*)pszData, 1); EXPECT_TRUE(memory.GetData() != nullptr); @@ -96,7 +96,7 @@ TEST(TestsTSharedMemory, Create_FromFullBuffer) { - char* pszData = "SomeString"; + const char* pszData = "SomeString"; TSharedMemory memory; memory.Create(L"UnitTestsSharedMemoryName", (BYTE*)pszData, 4); EXPECT_TRUE(memory.GetData() != nullptr); @@ -112,7 +112,7 @@ TEST(TestsTSharedMemory, Open) { - char* pszData = "SomeString"; + const char* pszData = "SomeString"; TSharedMemory srcMemory; srcMemory.Create(L"UnitTestsSharedMemoryName", (BYTE*)pszData, 4); @@ -157,7 +157,7 @@ TEST(TestsTSharedMemory, WriteBufferReadString) { - wchar_t* pszData = L"SomeString"; + const wchar_t* pszData = L"SomeString"; TSharedMemory memory; memory.Create(L"UnitTestsSharedMemoryName", 256); memory.Write((BYTE*)pszData, (unsigned int)((wcslen(pszData) + 1) * sizeof(wchar_t))); @@ -198,7 +198,7 @@ TEST(TestsTSharedMemory, WriteBufferReadString_ReceiverSide) { - wchar_t* pszData = L"SomeString"; + const wchar_t* pszData = L"SomeString"; TSharedMemory srcMemory; srcMemory.Create(L"UnitTestsSharedMemoryName", 256); srcMemory.Write((BYTE*)pszData, (unsigned int)((wcslen(pszData) + 1) * sizeof(wchar_t))); Index: tests/tests_shared/TestsExports.cpp =================================================================== diff -u -r9ddf8fdd5f641491dd30c49eb90f8f740314b6af -rf6e8ab2ff52d909ea3f4ee7791a621c737fd5ca1 --- tests/tests_shared/TestsExports.cpp (.../TestsExports.cpp) (revision 9ddf8fdd5f641491dd30c49eb90f8f740314b6af) +++ tests/tests_shared/TestsExports.cpp (.../TestsExports.cpp) (revision f6e8ab2ff52d909ea3f4ee7791a621c737fd5ca1) @@ -17,7 +17,7 @@ { if(test_part_result.failed()) { - char* pszFailureText = nullptr; + const char* pszFailureText = nullptr; if(test_part_result.fatally_failed()) pszFailureText = "FATAL"; else