summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kdecore/kapplication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdecore/kapplication.cpp b/kdecore/kapplication.cpp
index 7d205e055..8edc1d170 100644
--- a/kdecore/kapplication.cpp
+++ b/kdecore/kapplication.cpp
@@ -1214,7 +1214,7 @@ void KApplication::commitData( QSessionManager& sm )
if ( sm.allowsInteraction() ) {
TQWidgetList done;
- TQWidgetList *list = TQWidgetList(TQApplication::topLevelWidgets());
+ TQWidgetList *list = TQApplication::topLevelWidgets();
bool canceled = false;
TQWidget* w = list->first();
while ( !canceled && w ) {
@@ -1225,7 +1225,7 @@ void KApplication::commitData( QSessionManager& sm )
if ( !canceled )
done.append( w );
delete list; // one never knows...
- list = TQWidgetList(TQApplication::topLevelWidgets());
+ list = TQApplication::topLevelWidgets();
w = list->first();
} else {
w = list->next();