Changeset View
Changeset View
Standalone View
Standalone View
src/utils/katecmd.cpp
Show All 32 Lines | |||||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | KateCmd::~KateCmd() | 35 | KateCmd::~KateCmd() | ||
36 | { | 36 | { | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | bool KateCmd::registerCommand(KTextEditor::Command *cmd) | 39 | bool KateCmd::registerCommand(KTextEditor::Command *cmd) | ||
40 | { | 40 | { | ||
41 | const QStringList l = cmd->cmds(); | 41 | const QStringList &l = cmd->cmds(); | ||
42 | 42 | | |||
43 | for (int z = 0; z < l.count(); z++) | 43 | for (int z = 0; z < l.count(); z++) | ||
44 | if (m_dict.contains(l[z])) { | 44 | if (m_dict.contains(l[z])) { | ||
45 | qCDebug(LOG_KTE) << "Command already registered: " << l[z] << ". Aborting."; | 45 | qCDebug(LOG_KTE) << "Command already registered: " << l[z] << ". Aborting."; | ||
46 | return false; | 46 | return false; | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | for (int z = 0; z < l.count(); z++) { | 49 | for (int z = 0; z < l.count(); z++) { | ||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |