fix(app): coding style

This commit is contained in:
Ronan Abhamon 2017-08-09 16:03:39 +02:00
parent e52b6f6060
commit 7359bbe2e5
2 changed files with 12 additions and 14 deletions

View file

@ -182,7 +182,7 @@ void App::initContentApp () {
if (!commandArgument.isEmpty()) {
Cli::CommandFormat format;
mCli->executeCommand(commandArgument, &format);
if (format==Cli::UriFormat)
if (format == Cli::UriFormat)
mustBeIconified = true;
}
}
@ -229,12 +229,10 @@ void App::initContentApp () {
if (mEngine->rootObjects().isEmpty())
qFatal("Unable to open main window.");
QObject::connect(
CoreManager::getInstance()->getHandlers().get(),
&CoreHandlers::coreStarted, [this, mustBeIconified] () {
QObject::connect(CoreManager::getInstance()->getHandlers().get(),
&CoreHandlers::coreStarted, [this, mustBeIconified]() {
openAppAfterInit(mustBeIconified);
}
);
});
}
// -----------------------------------------------------------------------------

View file

@ -31,7 +31,7 @@
// =============================================================================
namespace linphone {
class Address;
class Address;
}
class Cli : public QObject {
@ -54,7 +54,7 @@ class Cli : public QObject {
};
class Command {
public:
public:
Command () = default;
Command (
const QString &functionName,
@ -66,7 +66,7 @@ public:
void execute (QHash<QString, QString> &args) const;
void executeUri (const std::shared_ptr<linphone::Address> &address) const;
private:
private:
QString mFunctionName;
QString mDescription;
Function mFunction = nullptr;
@ -77,11 +77,11 @@ public:
Cli (QObject *parent = Q_NULLPTR);
~Cli () = default;
enum CommandFormat {
UnknownFormat,
CliFormat,
UriFormat
};
enum CommandFormat {
UnknownFormat,
CliFormat,
UriFormat
};
void executeCommand (const QString &command, CommandFormat *format = nullptr) const;