Changeset View
Changeset View
Standalone View
Standalone View
src/vimode/command.cpp
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #include <vimode/command.h> | 21 | #include <vimode/command.h> | ||
22 | #include <vimode/keyparser.h> | 22 | #include <vimode/keyparser.h> | ||
23 | 23 | | |||
24 | #include <QRegExp> | 24 | #include <QRegExp> | ||
25 | 25 | | |||
26 | using namespace KateVi; | 26 | using namespace KateVi; | ||
27 | 27 | | |||
28 | Command::Command(NormalViMode *parent, QString pattern, bool (NormalViMode::*commandMethod)(), unsigned int flags) | 28 | Command::Command(NormalViMode *parent, const QString &pattern, bool (NormalViMode::*commandMethod)(), unsigned int flags) | ||
29 | { | 29 | { | ||
30 | m_parent = parent; | 30 | m_parent = parent; | ||
31 | m_pattern = KeyParser::self()->encodeKeySequence(pattern); | 31 | m_pattern = KeyParser::self()->encodeKeySequence(pattern); | ||
32 | m_flags = flags; | 32 | m_flags = flags; | ||
33 | m_ptr2commandMethod = commandMethod; | 33 | m_ptr2commandMethod = commandMethod; | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | Command::~Command() | 36 | Command::~Command() | ||
Show All 28 Lines |