Commit 7359bbe2 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(app): coding style

parent e52b6f60
...@@ -182,7 +182,7 @@ void App::initContentApp () { ...@@ -182,7 +182,7 @@ void App::initContentApp () {
if (!commandArgument.isEmpty()) { if (!commandArgument.isEmpty()) {
Cli::CommandFormat format; Cli::CommandFormat format;
mCli->executeCommand(commandArgument, &format); mCli->executeCommand(commandArgument, &format);
if (format==Cli::UriFormat) if (format == Cli::UriFormat)
mustBeIconified = true; mustBeIconified = true;
} }
} }
...@@ -229,12 +229,10 @@ void App::initContentApp () { ...@@ -229,12 +229,10 @@ void App::initContentApp () {
if (mEngine->rootObjects().isEmpty()) if (mEngine->rootObjects().isEmpty())
qFatal("Unable to open main window."); qFatal("Unable to open main window.");
QObject::connect( QObject::connect(CoreManager::getInstance()->getHandlers().get(),
CoreManager::getInstance()->getHandlers().get(), &CoreHandlers::coreStarted, [this, mustBeIconified]() {
&CoreHandlers::coreStarted, [this, mustBeIconified] () {
openAppAfterInit(mustBeIconified); openAppAfterInit(mustBeIconified);
} });
);
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
// ============================================================================= // =============================================================================
namespace linphone { namespace linphone {
class Address; class Address;
} }
class Cli : public QObject { class Cli : public QObject {
...@@ -54,7 +54,7 @@ class Cli : public QObject { ...@@ -54,7 +54,7 @@ class Cli : public QObject {
}; };
class Command { class Command {
public: public:
Command () = default; Command () = default;
Command ( Command (
const QString &functionName, const QString &functionName,
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
void execute (QHash<QString, QString> &args) const; void execute (QHash<QString, QString> &args) const;
void executeUri (const std::shared_ptr<linphone::Address> &address) const; void executeUri (const std::shared_ptr<linphone::Address> &address) const;
private: private:
QString mFunctionName; QString mFunctionName;
QString mDescription; QString mDescription;
Function mFunction = nullptr; Function mFunction = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment