fix compiler warnings:
- defined but not used - deprecated conversion from string constant to ‘char*’
This commit is contained in:
@@ -43,7 +43,7 @@ void RemoveCommentsTest :: testSingleLineComments (void)
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void RemoveCommentsTest :: testMultiLineComments (void)
|
||||
{
|
||||
char* szTest =
|
||||
const char* szTest =
|
||||
"/* comment to be removed */\n"
|
||||
"valid text /* \n "
|
||||
" comment across multiple lines */"
|
||||
@@ -62,4 +62,4 @@ void RemoveCommentsTest :: testMultiLineComments (void)
|
||||
CPPUNIT_ASSERT(0 == ::strcmp(szTest2,szTestResult));
|
||||
|
||||
delete[] szTest2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user