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
Kate
Commits
7a51ed1a
Commit
7a51ed1a
authored
Aug 03, 2022
by
Pablo Rauzy
Committed by
Christoph Cullmann
Aug 14, 2022
Browse files
using QRegularExpression instead of QRegExp
parent
8e64a33a
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/keyboardmacros/keyboardmacrosplugin.cpp
View file @
7a51ed1a
...
...
@@ -16,7 +16,7 @@
#include
<QKeyEvent>
#include
<QKeySequence>
#include
<QList>
#include
<QReg
Exp
>
#include
<QReg
ularExpression
>
#include
<QStandardPaths>
#include
<QString>
#include
<QStringList>
...
...
@@ -370,7 +370,7 @@ KeyboardMacrosPluginCommands::KeyboardMacrosPluginCommands(KeyboardMacrosPlugin
bool
KeyboardMacrosPluginCommands
::
exec
(
KTextEditor
::
View
*
view
,
const
QString
&
cmd
,
QString
&
msg
,
const
KTextEditor
::
Range
&
)
{
QStringList
actionAndName
=
cmd
.
split
(
QReg
Exp
(
QStringLiteral
(
"
\\
s+"
)));
QStringList
actionAndName
=
cmd
.
split
(
QReg
ularExpression
(
QStringLiteral
(
"
\\
s+"
)));
if
(
actionAndName
.
length
()
!=
2
)
{
msg
=
i18n
(
"Usage: %1 <name>."
,
actionAndName
.
at
(
0
));
return
false
;
...
...
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