Skip to content

Commit 4d16c63

Browse files
committed
performance improvements on rewrite comments
1 parent d622c3a commit 4d16c63

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
326 Bytes
Binary file not shown.

Include/BadRobot.Framework/Logger.mqh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Logger
1111
{
1212
private:
1313
string _logs[10];
14+
bool _hasChanges;
1415

1516
void Add(string txt){
1617

@@ -22,6 +23,7 @@ class Logger
2223
}
2324

2425
_logs[0] = txt;
26+
_hasChanges = true;
2527

2628
}
2729

@@ -76,6 +78,18 @@ class Logger
7678
string Last(){
7779
return _logs[0];
7880
}
81+
82+
bool HasChanges()
83+
{
84+
if(_hasChanges)
85+
{
86+
_hasChanges = false;
87+
return true;
88+
}
89+
90+
return false;
91+
92+
}
7993

8094

8195
};

0 commit comments

Comments
 (0)