Commit 199e4191 authored by kocienda's avatar kocienda

Some more cleanups having to do woth constructors, destructors, etc.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6f863666
......@@ -41,6 +41,7 @@ protected:
// constructors, copy constructors, and destructors ------------------------
QAsyncIO() {};
virtual ~QAsyncIO();
// member functions --------------------------------------------------------
......@@ -51,6 +52,11 @@ protected:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
QAsyncIO(const QAsyncIO &);
QAsyncIO &operator=(const QAsyncIO &);
}; // class QAsyncIO ===========================================================
......@@ -62,7 +68,11 @@ public:
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
QDataSource() {}
~QDataSource() {}
// member functions --------------------------------------------------------
......@@ -74,6 +84,11 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
// no copying or assignment
QDataSource(const QDataSource &);
QDataSource &operator=(const QDataSource &);
}; // end class QDataSource ====================================================
......@@ -85,7 +100,11 @@ public:
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
QDataSink() {}
~QDataSink() {}
// member functions --------------------------------------------------------
......@@ -96,6 +115,11 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
// no copying or assignment
QDataSink(const QDataSink &);
QDataSink &operator=(const QDataSink &);
}; // class QDataSink ==========================================================
#endif
......@@ -52,7 +52,9 @@ public:
QCString(int);
QCString(const char *);
QCString(const char *, uint);
QCString(const QCString&);
QCString(const QCString &);
~QCString();
// member functions --------------------------------------------------------
......@@ -68,10 +70,10 @@ public:
// operators ---------------------------------------------------------------
operator const char *() const;
QCString &operator=(const QCString&);
QCString &operator=(const QCString &);
QCString &operator=(const char *);
QCString &operator+=(const char *);
QCString &operator+=(const QCString&);
QCString &operator+=(const QCString &);
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
......
......@@ -45,6 +45,8 @@ public:
QColor(const char *);
QColor(const QColor &);
~QColor();
// member functions --------------------------------------------------------
QString name() const;
......
......@@ -41,6 +41,8 @@ public:
QTime(int, int);
QTime(const QTime &);
~QTime();
// member functions --------------------------------------------------------
bool isNull() const;
......
......@@ -89,6 +89,8 @@ public:
QMouseEvent(Type type, const QPoint &pos, int button, int state);
virtual ~QMouseEvent();
// member functions --------------------------------------------------------
int x();
......@@ -126,6 +128,8 @@ public:
QTimerEvent(int timerId);
virtual ~QTimerEvent();
// member functions --------------------------------------------------------
int timerId() const;
......@@ -157,6 +161,8 @@ public:
QKeyEvent();
QKeyEvent(Type, Key, int, int);
virtual ~QKeyEvent();
// member functions --------------------------------------------------------
int key() const;
......@@ -190,6 +196,8 @@ public:
QFocusEvent();
virtual ~QFocusEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -218,6 +226,8 @@ public:
QHideEvent();
virtual ~QHideEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -245,6 +255,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QResizeEvent();
virtual ~QResizeEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -273,6 +285,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QShowEvent();
virtual ~QShowEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -301,6 +315,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QWheelEvent();
virtual ~QWheelEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......
......@@ -58,6 +58,9 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
QGuardedPtr &operator=(const QGuardedPtr &);
}; // class QGuardedPtr ========================================================
#endif
......@@ -41,6 +41,8 @@ public:
QImage();
QImage(const QImage &);
~QImage();
// member functions --------------------------------------------------------
int width() const;
......
......@@ -43,6 +43,8 @@ public:
QMapIterator();
QMapIterator(const QMapIterator<K,T>& it);
~QMapIterator();
// member functions --------------------------------------------------------
const K& key() const;
......@@ -79,6 +81,8 @@ public:
QMapConstIterator(const QMapConstIterator<K,T>&);
QMapConstIterator(const QMapIterator<K,T>&);
~QMapConstIterator();
// member functions --------------------------------------------------------
const K& key() const;
......
......@@ -114,8 +114,8 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
Qt();
~Qt();
Qt() {}
~Qt() {}
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......
......@@ -71,6 +71,7 @@ public:
// typedefs ----------------------------------------------------------------
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
static bool connect(const QObject *, const char *, const QObject *,
......@@ -83,6 +84,8 @@ public:
QObject(QObject *parent=0, const char *name=0);
virtual ~QObject();
// member functions --------------------------------------------------------
const char *name() const;
......
......@@ -134,7 +134,6 @@ private:
// no copying or assignment
QPainter(const QPainter &);
QPainter &operator=(const QPainter &);
}; // end class QPainter
......
......@@ -117,6 +117,8 @@ public:
// operators ---------------------------------------------------------------
QPalette &operator=(const QPalette &);
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
......
......@@ -99,4 +99,4 @@ private:
}; // class QPointArray ========================================================
#endif
\ No newline at end of file
#endif
......@@ -81,6 +81,8 @@ public:
QPtrDictIterator(const QPtrDict<T> &);
~QPtrDictIterator();
// member functions --------------------------------------------------------
T *current() const;
......
......@@ -42,6 +42,8 @@ public:
QList();
QList(const QList<T> &);
virtual ~QList();
// member functions --------------------------------------------------------
......@@ -98,6 +100,8 @@ public:
QListIterator(const QList<T> &);
~QListIterator();
// member functions --------------------------------------------------------
uint count() const;
......
......@@ -47,6 +47,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QGVector();
virtual ~QGVector();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......
......@@ -44,6 +44,8 @@ public:
QRegExp(const QString &);
QRegExp(const QRegExp &);
~QRegExp();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......
......@@ -48,6 +48,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QScrollView();
virtual ~QScrollView();
// member functions --------------------------------------------------------
......
......@@ -63,6 +63,8 @@ public:
QChar(uint);
QChar(int);
~QChar() {}
// member functions --------------------------------------------------------
QChar lower() const;
......@@ -237,6 +239,9 @@ public:
// constructors, copy constructors, and destructors ------------------------
QConstString(QChar *, uint);
QConstString(const QConstString &);
~QConstString();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -244,6 +249,10 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
// no assignment
QConstString &operator=(const QConstString &);
}; // class QConstString =======================================================
#endif
......@@ -49,6 +49,7 @@ public:
// operators ---------------------------------------------------------------
QValueListIterator &operator=(const QValueListIterator &);
bool operator==(const QValueListIterator<T>&);
bool operator!=(const QValueListIterator<T>&);
T& operator*();
......@@ -84,6 +85,7 @@ public:
// operators ---------------------------------------------------------------
QValueListConstIterator &operator=(const QValueListConstIterator &);
bool operator==(const QValueListConstIterator<T>&);
bool operator!=(const QValueListConstIterator<T>&);
T& operator*();
......
......@@ -44,6 +44,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QImageDecoder();
~QImageDecoder();
// member functions --------------------------------------------------------
......
......@@ -41,6 +41,7 @@ protected:
// constructors, copy constructors, and destructors ------------------------
QAsyncIO() {};
virtual ~QAsyncIO();
// member functions --------------------------------------------------------
......@@ -51,6 +52,11 @@ protected:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
QAsyncIO(const QAsyncIO &);
QAsyncIO &operator=(const QAsyncIO &);
}; // class QAsyncIO ===========================================================
......@@ -62,7 +68,11 @@ public:
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
QDataSource() {}
~QDataSource() {}
// member functions --------------------------------------------------------
......@@ -74,6 +84,11 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
// no copying or assignment
QDataSource(const QDataSource &);
QDataSource &operator=(const QDataSource &);
}; // end class QDataSource ====================================================
......@@ -85,7 +100,11 @@ public:
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
QDataSink() {}
~QDataSink() {}
// member functions --------------------------------------------------------
......@@ -96,6 +115,11 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
// no copying or assignment
QDataSink(const QDataSink &);
QDataSink &operator=(const QDataSink &);
}; // class QDataSink ==========================================================
#endif
......@@ -42,13 +42,16 @@ public:
QBitmap();
QBitmap(int,int);
QBitmap(const QBitmap &);
~QBitmap();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
QBitmap &operator=(const QBitmap &);
QBitmap &operator=(const QPixmap &);
QBitmap &operator=(const QImage &);
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
......
......@@ -45,6 +45,8 @@ public:
QColor(const char *);
QColor(const QColor &);
~QColor();
// member functions --------------------------------------------------------
QString name() const;
......
......@@ -52,7 +52,9 @@ public:
QCString(int);
QCString(const char *);
QCString(const char *, uint);
QCString(const QCString&);
QCString(const QCString &);
~QCString();
// member functions --------------------------------------------------------
......@@ -68,10 +70,10 @@ public:
// operators ---------------------------------------------------------------
operator const char *() const;
QCString &operator=(const QCString&);
QCString &operator=(const QCString &);
QCString &operator=(const char *);
QCString &operator+=(const char *);
QCString &operator+=(const QCString&);
QCString &operator+=(const QCString &);
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
......
......@@ -41,6 +41,8 @@ public:
QTime(int, int);
QTime(const QTime &);
~QTime();
// member functions --------------------------------------------------------
bool isNull() const;
......
......@@ -60,6 +60,10 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
// no assignment
QDir &operator=(const QDir &);
}; // class QDir ===============================================================
#endif
......@@ -89,6 +89,8 @@ public:
QMouseEvent(Type type, const QPoint &pos, int button, int state);
virtual ~QMouseEvent();
// member functions --------------------------------------------------------
int x();
......@@ -126,6 +128,8 @@ public:
QTimerEvent(int timerId);
virtual ~QTimerEvent();
// member functions --------------------------------------------------------
int timerId() const;
......@@ -157,6 +161,8 @@ public:
QKeyEvent();
QKeyEvent(Type, Key, int, int);
virtual ~QKeyEvent();
// member functions --------------------------------------------------------
int key() const;
......@@ -190,6 +196,8 @@ public:
QFocusEvent();
virtual ~QFocusEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -218,6 +226,8 @@ public:
QHideEvent();
virtual ~QHideEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -245,6 +255,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QResizeEvent();
virtual ~QResizeEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -273,6 +285,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QShowEvent();
virtual ~QShowEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -301,6 +315,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QWheelEvent();
virtual ~QWheelEvent();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......
......@@ -43,6 +43,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QFontDatabase();
~QFontDatabase();
// member functions --------------------------------------------------------
......
......@@ -58,6 +58,9 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
private:
QGuardedPtr &operator=(const QGuardedPtr &);
}; // class QGuardedPtr ========================================================
#endif
......@@ -44,6 +44,8 @@ public:
QHBox();
QHBox(QWidget *);
~QHBox();
// member functions --------------------------------------------------------
bool setStretchFactor(QWidget*, int stretch);
......
......@@ -41,6 +41,8 @@ public:
QImage();
QImage(const QImage &);
~QImage();
// member functions --------------------------------------------------------
int width() const;
......
......@@ -45,6 +45,11 @@ public:
const char *name=0);
// constructors, copy constructors, and destructors ------------------------
QInputDialog() {}
~QInputDialog() {}
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......
......@@ -42,6 +42,8 @@ public:
QList();