Rename private variable maxtime

This commit is contained in:
Daniel Marjamäki 2018-06-18 09:49:00 +02:00
parent 86872f81ba
commit 13cf93a322
2 changed files with 5 additions and 5 deletions

View File

@ -148,7 +148,7 @@ Tokenizer::Tokenizer() :
mCodeWithTemplates(false), //is there any templates?
mTimerResults(nullptr)
#ifdef MAXTIME
,maxtime(std::time(0) + MAXTIME)
,mMaxTime(std::time(0) + MAXTIME)
#endif
{
}
@ -163,7 +163,7 @@ Tokenizer::Tokenizer(const Settings *settings, ErrorLogger *errorLogger) :
mCodeWithTemplates(false), //is there any templates?
mTimerResults(nullptr)
#ifdef MAXTIME
,maxtime(std::time(0) + MAXTIME)
,mMaxTime(std::time(0) + MAXTIME)
#endif
{
// make sure settings are specified
@ -2295,7 +2295,7 @@ void Tokenizer::simplifyTemplates()
mErrorLogger,
mSettings,
#ifdef MAXTIME
maxtime,
mMaxTime,
#else
0, // ignored
#endif

View File

@ -838,7 +838,7 @@ public:
#ifdef MAXTIME
bool isMaxTime() const {
return (std::time(0) > maxtime);
return (std::time(0) > mMaxTime);
#else
static bool isMaxTime() {
return false;
@ -900,7 +900,7 @@ private:
#ifdef MAXTIME
/** Tokenizer maxtime */
std::time_t maxtime;
const std::time_t mMaxTime;
#endif
};