Commit 7a51ed1a authored by Pablo Rauzy's avatar Pablo Rauzy Committed by Christoph Cullmann
Browse files

using QRegularExpression instead of QRegExp

parent 8e64a33a
......@@ -16,7 +16,7 @@
#include <QKeyEvent>
#include <QKeySequence>
#include <QList>
#include <QRegExp>
#include <QRegularExpression>
#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(QRegExp(QStringLiteral("\\s+")));
QStringList actionAndName = cmd.split(QRegularExpression(QStringLiteral("\\s+")));
if (actionAndName.length() != 2) {
msg = i18n("Usage: %1 <name>.", actionAndName.at(0));
return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment