16
0
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:
tmj-fstate
2017-01-18 07:56:51 +01:00
parent 4da7fedfe1
commit 6ab550831d
33 changed files with 824 additions and 929 deletions

View File

@@ -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: