diff --git a/src/app/cli/Cli.cpp b/src/app/cli/Cli.cpp index c9ead512f..6a7ddf46a 100644 --- a/src/app/cli/Cli.cpp +++ b/src/app/cli/Cli.cpp @@ -52,16 +52,15 @@ static void cliJoinConference (QHash &args) { CoreManager::getInstance()->getCallsListModel()->launchAudioCall(sipAddress, args); } - static void cliJoinConferenceAs (QHash &args) { const QString toSipAddress = args.take("sip-address"); const QString fromSipAddress = args.take("guest-sip-address"); shared_ptr core = CoreManager::getInstance()->getCore(); shared_ptr currentSipAddress = core->getDefaultProxyConfig()->getIdentityAddress()->clone(); currentSipAddress->clean(); - if (fromSipAddress!=::Utils::coreStringToAppString(currentSipAddress->asStringUriOnly())) { + if (fromSipAddress != ::Utils::coreStringToAppString(currentSipAddress->asStringUriOnly())) { qWarning() << QStringLiteral("guest sip address `%1` is not one of yours.") - .arg(fromSipAddress); + .arg(fromSipAddress); return; } args["method"] = QStringLiteral("join-conference"); @@ -167,10 +166,10 @@ void Cli::Command::execute (QHash &args) const { void Cli::Command::executeUri (const shared_ptr &address) const { QHash args; - //TODO: check if there is too much headers. + // TODO: check if there is too much headers. for (const auto &argName : mArgsScheme.keys()) { const string header = address->getHeader(::Utils::appStringToCoreString(argName)); - args[argName] = QByteArray::fromBase64(QByteArray(header.c_str(), header.length())); + args[argName] = QByteArray::fromBase64(QByteArray(header.c_str(), static_cast(header.length()))); } address->clean(); args["sip-address"] = ::Utils::coreStringToAppString(address->asStringUriOnly());