| 109 | } |
| 110 | |
| 111 | static void reduceSetToPatternMatch(QSet<QString> &set, |
| 112 | const RegexConfig ®ex, |
| 113 | const std::string &pattern) |
| 114 | { |
| 115 | QSet<QString> copy = set; |
| 116 | for (const auto &value : copy) { |
| 117 | if (!regex.Matches(value.toStdString(), pattern)) { |
| 118 | set.remove(value); |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | void MacroConditionFolder::DirectoryChanged(const QString &path) |
| 124 | { |
no test coverage detected