[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdevplatform/plugins/standardoutputview
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2008-04-20 21:53:03
Message-ID: 1208728383.078575.31811.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 799239 by apaku:

properly initialize all members.


 M  +2 -2      toolviewdata.cpp  
 M  +2 -2      toolviewdata.h  


--- trunk/KDE/kdevplatform/plugins/standardoutputview/toolviewdata.cpp #799238:799239
@@ -21,7 +21,7 @@
 #include "toolviewdata.h"
 
 OutputData::OutputData( ToolViewData* tv )
-    : QObject( tv ), delegate(0), model(0), toolView(tv)
+    : QObject( tv ), delegate(0), model(0), toolView(tv), view(0), id(-1)
 {
 }
 
@@ -38,7 +38,7 @@
 }
 
 ToolViewData::ToolViewData( QObject* parent )
-    : QObject( parent ), plugin(0)
+    : QObject( parent ), plugin(0), toolViewId(-1)
 {
 }
 
--- trunk/KDE/kdevplatform/plugins/standardoutputview/toolviewdata.h #799238:799239
@@ -44,11 +44,11 @@
     OutputData( ToolViewData* tv );
     QAbstractItemDelegate* delegate;
     QAbstractItemModel* model;
-    int id;
     ToolViewData* toolView;
     KDevelop::IOutputView::Behaviours behaviour;
     QString title;
     QListView* view;
+    int id;
     void setModel( QAbstractItemModel* model);
     void setDelegate( QAbstractItemDelegate* delegate);
 signals:
@@ -62,13 +62,13 @@
 public:
     ToolViewData( QObject* parent );
     ~ToolViewData();
-    int toolViewId;
     OutputData* addOutput( int id, const QString& title, KDevelop::IOutputView::Behaviours behave );
     QList<Sublime::View*> views;
     StandardOutputView* plugin;
     QMap<int, OutputData*> outputdata;
     KDevelop::IOutputView::ViewType type;
     QString title;
+    int toolViewId;
 signals:
     void outputAdded( int );
 };
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic