misc cleanups

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-02-11 23:40:33 +02:00
parent 39ea34b7ac
commit b01f1d3257
2 changed files with 3 additions and 3 deletions

View file

@ -155,7 +155,7 @@ static inline QStringList qCmdLineArgs(int argc, char *argv[])
static inline QStringList qCmdLineArgs(int argc, char *argv[])
{
QStringList args;
for (int i = 0; i != argc; ++i)
for (int i = 0; i != argc; ++i)
args += QString::fromLocal8Bit(argv[i]);
return args;
}

View file

@ -110,8 +110,8 @@ QObject *QObjectCleanupHandler::add(QObject* object)
*/
void QObjectCleanupHandler::remove(QObject *object)
{
int index;
if ((index = cleanupObjects.indexOf(object)) != -1) {
int index = cleanupObjects.indexOf(object);
if (index != -1) {
cleanupObjects.removeAt(index);
disconnect(object, SIGNAL(destroyed(QObject*)), this, SLOT(objectDestroyed(QObject*)));
}