mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 01:59:19 +02:00
basic patches for most of discovered memory leaks, fixes for brake system components
This commit is contained in:
4
parser.h
4
parser.h
@@ -57,7 +57,7 @@ class cParser : public std::stringstream
|
||||
for (int i = 0; i < count; i++)
|
||||
readToken();
|
||||
};
|
||||
inline bool expectToken(std::string value)
|
||||
inline bool expectToken(std::string const &value)
|
||||
{
|
||||
return readToken() == value;
|
||||
};
|
||||
@@ -77,7 +77,7 @@ class cParser : public std::stringstream
|
||||
protected:
|
||||
// methods:
|
||||
std::string readToken(bool ToLower = true, const char *Break = "\n\t ;");
|
||||
std::string readComment(const std::string Break = "\n\t ;");
|
||||
std::string readComment(std::string const &Break = "\n\t ;");
|
||||
std::string trtest;
|
||||
bool trimComments(std::string &String);
|
||||
// members:
|
||||
|
||||
Reference in New Issue
Block a user