Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
505aadb2
Commit
505aadb2
authored
Jun 20, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Cli): test correctly function name
parent
b5be92e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cli.cpp
src/app/cli/Cli.cpp
+3
-3
No files found.
src/app/cli/Cli.cpp
View file @
505aadb2
...
...
@@ -105,13 +105,13 @@ void Cli::executeCommand (const QString &command) noexcept {
const
QString
Cli
::
parseFunctionName
(
const
QString
&
command
)
noexcept
{
mRegExpFunctionName
.
indexIn
(
command
);
const
QStringList
texts
=
mRegExpFunctionName
.
capturedTexts
();
if
(
texts
.
size
()
<
2
)
{
if
(
mRegExpFunctionName
.
pos
(
1
)
==
-
1
)
{
qWarning
()
<<
QStringLiteral
(
"Unable to parse function name of command: `%1`."
).
arg
(
command
);
return
QString
(
""
);
}
const
QStringList
texts
=
mRegExpFunctionName
.
capturedTexts
();
const
QString
functionName
=
texts
[
1
];
if
(
!
mCommands
.
contains
(
functionName
))
{
qWarning
()
<<
QStringLiteral
(
"This command doesn't exist: `%1`."
).
arg
(
functionName
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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