diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-25 00:56:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-25 00:56:27 +0300 |
commit | a6f7e903c40088406d7f6024162e141366120fb1 (patch) | |
tree | c0e5f0d41c58b5f8d0481c3baea16650027d8a00 | |
parent | 32e3bb6e72b8dd84d6f711a8b2c6db879d169279 (diff) | |
download | mplint-a6f7e903c40088406d7f6024162e141366120fb1.tar.gz mplint-a6f7e903c40088406d7f6024162e141366120fb1.tar.bz2 mplint-a6f7e903c40088406d7f6024162e141366120fb1.tar.xz mplint-a6f7e903c40088406d7f6024162e141366120fb1.zip |
Fix rule termination.
-rw-r--r-- | src/lintmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lintmanager.cpp b/src/lintmanager.cpp index ec3c085..97ee925 100644 --- a/src/lintmanager.cpp +++ b/src/lintmanager.cpp @@ -162,7 +162,8 @@ void LintManager::selectRulesForFile() rule->init(); rule->setFile(mFileName); rule->start(); - mSelectedRules.push_back(rule); + if (rule->getFlag()) + mSelectedRules.push_back(rule); } } } |