[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Sat Jun 5 19:35:09 CEST 2004
CVS commit by staikos:
Proper form for kst shared pointers
M +1 -6 kstviewwindow.cpp 1.10
M +2 -2 kstviewwindow.h 1.10
--- kdeextragear-2/kst/kst/kstviewwindow.cpp #1.9:1.10
@@ -60,5 +60,4 @@ KstViewWindow::KstViewWindow(QWidget *pa
commonConstructor();
_view = new KstTopLevelView(this);
- _view->_KShared_ref();
}
@@ -72,5 +71,4 @@ KstViewWindow::KstViewWindow(QDomElement
commonConstructor();
_view = new KstTopLevelView(e, this);
- _view->_KShared_ref();
QDomNode n = e.firstChild();
@@ -125,7 +123,4 @@ void KstViewWindow::updateActions() {
KstViewWindow::~KstViewWindow() {
- if (_view) {
- _view->_KShared_unref();
- }
}
@@ -276,5 +271,5 @@ void KstViewWindow::save(QTextStream& ts
}
-KstTopLevelView* KstViewWindow::view() const {
+KstTopLevelViewPtr KstViewWindow::view() const {
return _view;
}
--- kdeextragear-2/kst/kst/kstviewwindow.h #1.9:1.10
@@ -49,5 +49,5 @@ class KstViewWindow : public KMdiChildVi
void togglePaused();
void save(QTextStream& ts);
- KstTopLevelView* view() const;
+ KstTopLevelViewPtr view() const;
protected:
@@ -118,5 +118,5 @@ class KstViewWindow : public KMdiChildVi
/** the configuration object of the application */
KConfig *config;
- KstTopLevelView *_view;
+ KstTopLevelViewPtr _view;
};
More information about the Kst
mailing list