@@ -1448,7 +1448,7 @@ class TestSimplifyTokens : public TestFixture {
14481448 " for (int i = 0; i < static_cast<int>(3); ++i) {}\n "
14491449 " }\n " ;
14501450
1451- const std::string expected ( " void f ( ) { for ( int i = 0 ; i < 3 ; ++ i ) { } }" ) ;
1451+ const char expected[] = " void f ( ) { for ( int i = 0 ; i < 3 ; ++ i ) { } }" ;
14521452
14531453 ASSERT_EQUALS (expected, tok (code));
14541454 }
@@ -1459,7 +1459,7 @@ class TestSimplifyTokens : public TestFixture {
14591459 " p = const_cast<char *> qtu ();\n "
14601460 " }\n " ;
14611461
1462- const std::string expected ( " void f ( ) { p = const_cast < char * > qtu ( ) ; }" ) ;
1462+ const char expected[] = " void f ( ) { p = const_cast < char * > qtu ( ) ; }" ;
14631463
14641464 ASSERT_EQUALS (expected, tok (code));
14651465 }
@@ -1470,7 +1470,7 @@ class TestSimplifyTokens : public TestFixture {
14701470 " {\n "
14711471 " return dynamic_cast<Foo *>((bar()));\n "
14721472 " }\n " ;
1473- const std::string expected ( " void f ( ) { return bar ( ) ; }" ) ;
1473+ const char expected[] = " void f ( ) { return bar ( ) ; }" ;
14741474
14751475 ASSERT_EQUALS (expected, tok (code));
14761476 }
@@ -1534,23 +1534,23 @@ class TestSimplifyTokens : public TestFixture {
15341534 {
15351535 const char code[] = " using namespace std; namespace a{ namespace b{ void f(){} } }" ;
15361536
1537- const std::string expected ( " namespace a { namespace b { void f ( ) { } } }" ) ;
1537+ const char expected[] = " namespace a { namespace b { void f ( ) { } } }" ;
15381538
15391539 ASSERT_EQUALS (expected, tok (code));
15401540 }
15411541
15421542 {
15431543 const char code[] = " namespace b{ void f(){} }" ;
15441544
1545- const std::string expected ( " namespace b { void f ( ) { } }" ) ;
1545+ const char expected[] = " namespace b { void f ( ) { } }" ;
15461546
15471547 ASSERT_EQUALS (expected, tok (code));
15481548 }
15491549
15501550 {
15511551 const char code[] = " void f(int namespace) { }" ;
15521552
1553- const std::string expected ( " void f ( int namespace ) { }" ) ;
1553+ const char expected[] = " void f ( int namespace ) { }" ;
15541554
15551555 ASSERT_EQUALS (expected, tok (code));
15561556 }
0 commit comments