From kde-commits Mon Jul 31 23:52:18 2017 From: Aleix Pol Date: Mon, 31 Jul 2017 23:52:18 +0000 To: kde-commits Subject: [kdev-python] /: Cleanup Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=150154516622868 Git commit 9ac18e3e70e9e8d47da5d70459f25c1707dfbb7e by Aleix Pol. Committed on 31/07/2017 at 23:51. Pushed by apol into branch 'master'. Cleanup Fix warning Remove unneeded include Use function pointers for connect, makes it easier to browse the code nowadays. M +1 -1 docfilekcm/docfilewizard.cpp M +0 -1 pythonparsejob.cpp M +0 -1 pythonstylechecking.cpp https://commits.kde.org/kdev-python/9ac18e3e70e9e8d47da5d70459f25c1707dfbb7e diff --git a/docfilekcm/docfilewizard.cpp b/docfilekcm/docfilewizard.cpp index 5fb82582..3e71c756 100644 --- a/docfilekcm/docfilewizard.cpp +++ b/docfilekcm/docfilewizard.cpp @@ -177,7 +177,7 @@ bool DocfileWizard::run() worker =3D new QProcess(this); QObject::connect(worker, &QProcess::readyReadStandardError, this, &Doc= fileWizard::processScriptOutput); QObject::connect(worker, &QProcess::readyReadStandardOutput, this, &Do= cfileWizard::processScriptOutput); - QObject::connect(worker, SIGNAL(finished(int)), this, SLOT(processFini= shed(int))); + QObject::connect(worker, static_cast(&QProcess= ::finished), this, &DocfileWizard::processFinished); = // can never have too many slashes outputFile.setFileName(workingDirectory + "/" + outputFilename); diff --git a/pythonparsejob.cpp b/pythonparsejob.cpp index fcf12457..c4e81486 100644 --- a/pythonparsejob.cpp +++ b/pythonparsejob.cpp @@ -55,7 +55,6 @@ #include = #include -#include #include #include #include diff --git a/pythonstylechecking.cpp b/pythonstylechecking.cpp index fdf0ded2..fae78388 100644 --- a/pythonstylechecking.cpp +++ b/pythonstylechecking.cpp @@ -133,7 +133,6 @@ void StyleChecking::processOutputStarted() size_d =3D m_checkerProcess.read(10); bool ok; auto size =3D size_d.toInt(&ok); - auto origSize =3D size; if ( !ok || size < 0 ) { addSetupErrorToContext("Got invalid size: " + size_d); m_mutex.unlock();