mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
39ea34b7ac
commit
b01f1d3257
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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*)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue