Commit def7496c authored by kocienda's avatar kocienda

More header cleanups


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7b5bc0de
......@@ -68,10 +68,15 @@ public:
private:
// add copy constructor and assignment operator
#ifdef KWQ_PEDANTIC
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
DCOPClient(const DCOPClient &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
DCOPClient &operator=(const DCOPClient &);
#endif
......
......@@ -45,6 +45,7 @@ public:
KComboBox(QWidget *parent=0, const char *name=0);
KComboBox(bool rw, QWidget *parent=0, const char *name=0);
virtual ~KComboBox();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -53,9 +54,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KComboBox(const KComboBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KComboBox &operator=(const KComboBox &);
#endif
}; // class KComboBox ==========================================================
......
......@@ -42,8 +42,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KCompletionBox();
~KCompletionBox();
virtual ~KCompletionBox();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +51,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KCompletionBox(const KCompletionBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KCompletionBox &operator=(const KCompletionBox &);
#endif
}; // class KCompletionBox =====================================================
......
......@@ -46,7 +46,10 @@ public:
KCursor();
~KCursor();
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
~KCursor() {}
#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -55,9 +58,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KCursor(const KCursor &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KCursor &operator=(const KCursor &);
#endif
}; // class KCursor ============================================================
......
......@@ -48,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
KFileDialog();
~KFileDialog();
// member functions --------------------------------------------------------
......@@ -59,6 +58,7 @@ public:
private:
// no copying or assignment
// note that these are "standard" (no pendantic stuff needed)
KFileDialog(const KFileDialog &);
KFileDialog &operator=(const KFileDialog &);
......
......@@ -42,8 +42,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KAction();
~KAction();
virtual ~KAction();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +51,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KAction(const KAction &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KAction &operator=(const KAction &);
#endif
}; // class KAction ============================================================
......
......@@ -46,8 +46,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KLineEdit(QWidget *parent=0, const char *name=0);
~KLineEdit();
virtual ~KLineEdit();
// member functions --------------------------------------------------------
......@@ -61,9 +60,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KLineEdit(const KLineEdit &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KLineEdit &operator=(const KLineEdit &);
#endif
}; // class __class_name__ =====================================================
......
......@@ -45,6 +45,11 @@ public:
KListBox();
KListBox(QWidget *);
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
~KListBox() {}
#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +57,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KListBox(const KListBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KListBox &operator=(const KListBox &);
#endif
}; // class KListBox ===========================================================
......
......@@ -68,10 +68,15 @@ public:
private:
// add copy constructor and assignment operator
#ifdef KWQ_PEDANTIC
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
DCOPClient(const DCOPClient &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
DCOPClient &operator=(const DCOPClient &);
#endif
......
......@@ -42,8 +42,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KAction();
~KAction();
virtual ~KAction();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +51,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KAction(const KAction &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KAction &operator=(const KAction &);
#endif
}; // class KAction ============================================================
......
......@@ -45,6 +45,7 @@ public:
KComboBox(QWidget *parent=0, const char *name=0);
KComboBox(bool rw, QWidget *parent=0, const char *name=0);
virtual ~KComboBox();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -53,9 +54,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KComboBox(const KComboBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KComboBox &operator=(const KComboBox &);
#endif
}; // class KComboBox ==========================================================
......
......@@ -42,8 +42,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KCompletionBox();
~KCompletionBox();
virtual ~KCompletionBox();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +51,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KCompletionBox(const KCompletionBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KCompletionBox &operator=(const KCompletionBox &);
#endif
}; // class KCompletionBox =====================================================
......
......@@ -46,7 +46,10 @@ public:
KCursor();
~KCursor();
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
~KCursor() {}
#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -55,9 +58,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KCursor(const KCursor &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KCursor &operator=(const KCursor &);
#endif
}; // class KCursor ============================================================
......
......@@ -53,7 +53,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QTableView();
~QTableView();
// member functions --------------------------------------------------------
......@@ -70,9 +69,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
QTableView(const QTableView &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
QTableView &operator=(const QTableView &);
#endif
}; // class QTableView =========================================================
......@@ -98,7 +106,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QMultiLineEdit();
~QMultiLineEdit();
// member functions --------------------------------------------------------
......@@ -123,6 +130,7 @@ public:
private:
// no copying or assignment
// note that these are "standard" (no pendantic stuff needed)
QMultiLineEdit(const QMultiLineEdit &);
QMultiLineEdit &operator=(const QMultiLineEdit &);
......@@ -144,7 +152,6 @@ public:
KEdit();
KEdit(QWidget *);
~KEdit();
// member functions --------------------------------------------------------
......@@ -154,9 +161,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KEdit(const KEdit &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KEdit &operator=(const KEdit &);
#endif
}; // class KEdit ==============================================================
......
......@@ -46,8 +46,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KLineEdit(QWidget *parent=0, const char *name=0);
~KLineEdit();
virtual ~KLineEdit();
// member functions --------------------------------------------------------
......@@ -61,9 +60,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KLineEdit(const KLineEdit &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KLineEdit &operator=(const KLineEdit &);
#endif
}; // class __class_name__ =====================================================
......
......@@ -45,6 +45,11 @@ public:
KListBox();
KListBox(QWidget *);
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
~KListBox() {}
#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +57,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KListBox(const KListBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KListBox &operator=(const KListBox &);
#endif
}; // class KListBox ===========================================================
......
......@@ -64,10 +64,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
KMessageBox();
~KMessageBox();
// add no-op constructor
#ifdef _KWQ_PEDANTIC_
KMessageBox() {}
#endif
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
~KMessageBox() {}
#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -75,9 +81,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KMessageBox(const KMessageBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KMessageBox &operator=(const KMessageBox &);
#endif
}; // class KMessageBox ========================================================
......
......@@ -48,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
KFileDialog();
~KFileDialog();
// member functions --------------------------------------------------------
......@@ -59,6 +58,7 @@ public:
private:
// no copying or assignment
// note that these are "standard" (no pendantic stuff needed)
KFileDialog(const KFileDialog &);
KFileDialog &operator=(const KFileDialog &);
......
......@@ -68,10 +68,15 @@ public:
private:
// add copy constructor and assignment operator
#ifdef KWQ_PEDANTIC
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
DCOPClient(const DCOPClient &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
DCOPClient &operator=(const DCOPClient &);
#endif
......
......@@ -42,8 +42,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KAction();
~KAction();
virtual ~KAction();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +51,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KAction(const KAction &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KAction &operator=(const KAction &);
#endif
}; // class KAction ============================================================
......
......@@ -45,6 +45,7 @@ public:
KComboBox(QWidget *parent=0, const char *name=0);
KComboBox(bool rw, QWidget *parent=0, const char *name=0);
virtual ~KComboBox();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -53,9 +54,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KComboBox(const KComboBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KComboBox &operator=(const KComboBox &);
#endif
}; // class KComboBox ==========================================================
......
......@@ -42,8 +42,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
KCompletionBox();
~KCompletionBox();
virtual ~KCompletionBox();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
......@@ -52,9 +51,18 @@ public:
// private ---------------------------------------------------------------------
private:
// no copying or assignment
// add copy constructor
// this private declaration prevents copying
#ifdef _KWQ_PEDANTIC_
KCompletionBox(const KCompletionBox &);
#endif
// add assignment operator
// this private declaration prevents assignment
#ifdef _KWQ_PEDANTIC_
KCompletionBox &operator=(const KCompletionBox &);
#endif
}; // class KCompletionBox =====================================================
......
......@@ -46,7 +46,10 @@ public:
KCursor();
~KCursor();
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
~KCursor() {}
#endif