Skip to content

Commit

Permalink
fix(app): remove useless this capture in lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Wescoeur committed Jan 22, 2018
1 parent 313aa68 commit b59e8c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/App.cpp
Expand Up @@ -167,11 +167,11 @@ void App::initContentApp () {
setQuitOnLastWindowClosed(false);

// Deal with received messages and CLI.
QObject::connect(this, &App::receivedMessage, this, [this](int, const QByteArray &byteArray) {
QString command(byteArray);
qInfo() << QStringLiteral("Received command from other application: `%1`.").arg(command);
Cli::executeCommand(command);
});
QObject::connect(this, &App::receivedMessage, this, [](int, const QByteArray &byteArray) {
QString command(byteArray);
qInfo() << QStringLiteral("Received command from other application: `%1`.").arg(command);
Cli::executeCommand(command);
});

// Add plugins directory.
addLibraryPath(::Utils::coreStringToAppString(Paths::getPluginsDirPath()));
Expand Down

0 comments on commit b59e8c2

Please sign in to comment.