Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KFind
Commits
028a3296
Commit
028a3296
authored
Aug 15, 2022
by
Nicolas Fella
Browse files
Clear regex list when setting new expressions
Since
020051c7
the objects were deleted but the list not cleared
parent
e6a0e8ec
Pipeline
#228115
passed with stage
in 2 minutes and 21 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/kquery.cpp
View file @
028a3296
...
...
@@ -530,6 +530,7 @@ void KQuery::setRegExp(const QString ®exp, bool caseSensitive)
const
QStringList
strList
=
regexp
.
split
(
QLatin1Char
(
';'
),
Qt
::
SkipEmptyParts
);
// QRegExp globChars ("[\\*\\?\\[\\]]", TRUE, FALSE);
qDeleteAll
(
m_regexps
);
m_regexps
.
clear
();
m_regexps
.
reserve
(
strList
.
size
());
// m_regexpsContainsGlobs.clear();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment