From 4aaf67ff3105713ecb98fa1abbe13bdbc1be9082 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 19 Aug 2014 08:16:44 +0100 Subject: [PATCH] const_casts to get rid of warnings in new wchar_t tests --- projects/SelfTest/MiscTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/SelfTest/MiscTests.cpp b/projects/SelfTest/MiscTests.cpp index e425b64a..b229c766 100644 --- a/projects/SelfTest/MiscTests.cpp +++ b/projects/SelfTest/MiscTests.cpp @@ -370,13 +370,13 @@ TEST_CASE( "toString on const wchar_t pointer returns the string contents", "[to } TEST_CASE( "toString on wchar_t const pointer returns the string contents", "[toString]" ) { - wchar_t * const s = L"wide load"; + wchar_t * const s = const_cast( L"wide load" ); std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); } TEST_CASE( "toString on wchar_t returns the string contents", "[toString]" ) { - wchar_t * s = L"wide load"; + wchar_t * s = const_cast( L"wide load" ); std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); -} \ No newline at end of file +}