From 7359bbe2e5a40ce2cbc30aebec23935e5afd3da7 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 9 Aug 2017 16:03:39 +0200 Subject: [PATCH] fix(app): coding style --- src/app/App.cpp | 10 ++++------ src/app/cli/Cli.hpp | 16 ++++++++-------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/app/App.cpp b/src/app/App.cpp index bc89cb013..200b4ca1c 100644 --- a/src/app/App.cpp +++ b/src/app/App.cpp @@ -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); - } - ); + }); } // ----------------------------------------------------------------------------- diff --git a/src/app/cli/Cli.hpp b/src/app/cli/Cli.hpp index 82c25ad8a..1abd0e903 100644 --- a/src/app/cli/Cli.hpp +++ b/src/app/cli/Cli.hpp @@ -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 &args) const; void executeUri (const std::shared_ptr &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;