Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/FilterEngine.cpp

Issue 11037099: First run detection fix (Closed)
Patch Set: Created July 11, 2013, 10:03 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/init.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FilterEngine.cpp
===================================================================
--- a/src/FilterEngine.cpp
+++ b/src/FilterEngine.cpp
@@ -160,9 +160,11 @@
firstRun = params.size() && params[0]->AsBool();
}
-bool FilterEngine::IsFirstRun() const
+bool FilterEngine::IsFirstRun()
{
- return firstRun;
+ bool temp = firstRun;
+ firstRun = false;
+ return temp;
Wladimir Palant 2013/07/11 11:36:21 Debug code?
Oleksandr 2013/07/11 12:18:45 Not actually. My thinking was that the first run a
Wladimir Palant 2013/07/11 12:56:20 I see. I actually suggested in the other review th
}
FilterPtr FilterEngine::GetFilter(const std::string& text)
« no previous file with comments | « lib/init.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld