@@ -1516,7 +1516,7 @@ String Project::print_cpp()
15161516 for (auto &t : sources)
15171517 {
15181518 s += " \" " + t + " \" " ;
1519- if (t.find (" \\ " ) != - 1 || t.find (" *" ) != - 1 )
1519+ if (t.find (" \\ " ) != String::npos || t.find (" *" ) != String::npos )
15201520 s += " _rr" ;
15211521 s += " ,\n " ;
15221522 }
@@ -1533,7 +1533,7 @@ String Project::print_cpp()
15331533 for (auto &t : exclude_from_build)
15341534 {
15351535 s += " \" " + t + " \" " ;
1536- if (t.find (" \\ " ) != - 1 || t.find (" *" ) != - 1 )
1536+ if (t.find (" \\ " ) != String::npos || t.find (" *" ) != String::npos )
15371537 s += " _rr" ;
15381538 s += " ,\n " ;
15391539 }
@@ -1550,7 +1550,7 @@ String Project::print_cpp()
15501550 for (auto &t : exclude_from_package)
15511551 {
15521552 s += "\"" + t + "\"";
1553- if (t.find("\\") != -1 || t.find("*") != -1 )
1553+ if (t.find("\\") != String::npos || t.find("*") != String::npos )
15541554 s += "_rr";
15551555 s += ",\n";
15561556 }
@@ -1566,7 +1566,7 @@ String Project::print_cpp()
15661566 String s;
15671567 for (auto &t : include_directories.private_ )
15681568 {
1569- if (t.string ().find (" BDIR" ) == - 1 )
1569+ if (t.string ().find (" BDIR" ) == String::npos )
15701570 s += " \" " + t.string () + " \" _id,\n " ;
15711571 }
15721572 s.resize (s.size () - 2 );
@@ -1580,7 +1580,7 @@ String Project::print_cpp()
15801580 String s;
15811581 for (auto &t : include_directories.public_ )
15821582 {
1583- if (t.string ().find (" BDIR" ) == - 1 )
1583+ if (t.string ().find (" BDIR" ) == String::npos )
15841584 s += " \" " + t.string () + " \" _id,\n " ;
15851585 }
15861586 s.resize (s.size () - 2 );
@@ -1824,7 +1824,7 @@ String Project::print_cpp2()
18241824 for (auto &t : sources)
18251825 {
18261826 s += " \" " + t + " \" " ;
1827- if (t.find (" \\ " ) != - 1 || t.find (" *" ) != - 1 )
1827+ if (t.find (" \\ " ) != String::npos || t.find (" *" ) != String::npos )
18281828 s += " _rr" ;
18291829 s += " ,\n " ;
18301830 }
@@ -1843,7 +1843,7 @@ String Project::print_cpp2()
18431843 for (auto &t : exclude_from_build)
18441844 {
18451845 s += " \" " + t + " \" " ;
1846- if (t.find (" \\ " ) != - 1 || t.find (" *" ) != - 1 )
1846+ if (t.find (" \\ " ) != String::npos || t.find (" *" ) != String::npos )
18471847 s += " _rr" ;
18481848 s += " ,\n " ;
18491849 }
@@ -1862,7 +1862,7 @@ String Project::print_cpp2()
18621862 for (auto &t : exclude_from_package)
18631863 {
18641864 s += " \" " + t + " \" " ;
1865- if (t.find (" \\ " ) != - 1 || t.find (" *" ) != - 1 )
1865+ if (t.find (" \\ " ) != String::npos || t.find (" *" ) != String::npos )
18661866 s += " _rr" ;
18671867 s += " ,\n " ;
18681868 }
@@ -1880,7 +1880,7 @@ String Project::print_cpp2()
18801880 String s;
18811881 for (auto &t : include_directories.private_ )
18821882 {
1883- if (t.string ().find (" BDIR" ) == - 1 )
1883+ if (t.string ().find (" BDIR" ) == String::npos )
18841884 s += " \" " + t.string () + " \" _id,\n " ;
18851885 }
18861886 s.resize (s.size () - 2 );
@@ -1896,7 +1896,7 @@ String Project::print_cpp2()
18961896 for (auto &t : include_directories.public_ )
18971897 {
18981898 auto str = t.string ();
1899- if (str.find (" BDIR" ) != - 1 )
1899+ if (str.find (" BDIR" ) != String::npos )
19001900 continue ;
19011901 if (str == " ." )
19021902 continue ;
0 commit comments