mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
Replace starts_with and ends_with with string class methods
This commit is contained in:
@@ -9546,8 +9546,7 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
|
||||
|
||||
inputline = fizparser.getToken<std::string>(false, "\n\r");
|
||||
|
||||
bool comment = ((contains(inputline, '#')) || (starts_with(inputline, "//")));
|
||||
if (true == comment)
|
||||
if (inputline.starts_with("//") || contains(inputline, '#'))
|
||||
{
|
||||
// skip commented lines
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user