[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:44:49 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit d927cbe09fd876ec78e31ff6d04aca6933203124
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Sep 10 23:46:18 2001 +0000
Finished initial code clean up. This includes:
- Adding a no-arg constructor for every class that didn't have one
- Adding a destructor for every class that didn't have one
- Adding a private copy constructor for every class that didn't have one
- Adding a private assignment operator for every class that didn't have one
- Pretty formatting
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/config.h.in b/WebCore/config.h.in
index dbe3140..445b3fc 100644
--- a/WebCore/config.h.in
+++ b/WebCore/config.h.in
@@ -1,3 +1,6 @@
+#ifndef CONFIG_H_
+#define CONFIG_H_
+
/* Define for compiling in KWQ land */
#undef _KWQ_
@@ -847,3 +850,4 @@ int openpty(int *, int *, char *, struct termios *, struct winsize *);
__END_DECLS
#endif
+#endif
diff --git a/WebCore/kwq/KWQApplication.h b/WebCore/kwq/KWQApplication.h
index 1775340..9970059 100644
--- a/WebCore/kwq/KWQApplication.h
+++ b/WebCore/kwq/KWQApplication.h
@@ -26,6 +26,10 @@
#ifndef QAPPLICATION_H_
#define QAPPLICATION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qpalette.h"
#include "qsize.h"
@@ -51,7 +55,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QApplication();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QApplication() {}
+#endif
+
+ QApplication( int &argc, char **argv);
virtual ~QApplication();
// member functions --------------------------------------------------------
@@ -63,6 +72,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QApplication(const QApplication &);
QApplication &operator=(const QApplication &);
diff --git a/WebCore/kwq/KWQAsyncIO.h b/WebCore/kwq/KWQAsyncIO.h
index be558eb..9eeeb7b 100644
--- a/WebCore/kwq/KWQAsyncIO.h
+++ b/WebCore/kwq/KWQAsyncIO.h
@@ -26,6 +26,10 @@
#ifndef QASYNCIO_H_
#define QASYNCIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QAsyncIO ==============================================================
@@ -41,7 +45,11 @@ protected:
// constructors, copy constructors, and destructors ------------------------
- QAsyncIO() {};
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QAsyncIO() {}
+#endif
+
virtual ~QAsyncIO();
// member functions --------------------------------------------------------
@@ -53,9 +61,18 @@ protected:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QAsyncIO(const QAsyncIO &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QAsyncIO &operator=(const QAsyncIO &);
+#endif
}; // class QAsyncIO ===========================================================
@@ -71,8 +88,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QDataSource() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~QDataSource() {}
+#endif
// member functions --------------------------------------------------------
@@ -85,9 +109,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDataSource(const QDataSource &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDataSource &operator=(const QDataSource &);
+#endif
}; // end class QDataSource ====================================================
@@ -103,8 +136,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QDataSink() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~QDataSink() {}
+#endif
// member functions --------------------------------------------------------
@@ -116,9 +156,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDataSink(const QDataSink &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDataSink &operator=(const QDataSink &);
+#endif
}; // class QDataSink ==========================================================
diff --git a/WebCore/kwq/KWQBrush.h b/WebCore/kwq/KWQBrush.h
index ccbdf24..b8367fa 100644
--- a/WebCore/kwq/KWQBrush.h
+++ b/WebCore/kwq/KWQBrush.h
@@ -26,6 +26,10 @@
#ifndef QBRUSH_H_
#define QBRUSH_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qcolor.h"
#include "qnamespace.h"
@@ -45,9 +49,7 @@ public:
QBrush();
QBrush(const QColor &);
QBrush(const QBrush &);
-
QBrush &operator=(const QBrush &);
-
~QBrush();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQBuffer.h b/WebCore/kwq/KWQBuffer.h
index 45a8aa1..4db04c7 100644
--- a/WebCore/kwq/KWQBuffer.h
+++ b/WebCore/kwq/KWQBuffer.h
@@ -26,6 +26,10 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include "qarray.h"
@@ -44,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QBuffer();
-
~QBuffer();
// member functions --------------------------------------------------------
@@ -63,6 +66,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QBuffer(const QBuffer &);
QBuffer &operator=(const QBuffer &);
diff --git a/WebCore/kwq/KWQButton.h b/WebCore/kwq/KWQButton.h
index d337499..8ee3254 100644
--- a/WebCore/kwq/KWQButton.h
+++ b/WebCore/kwq/KWQButton.h
@@ -26,6 +26,10 @@
#ifndef QBUTTON_H_
#define QBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qstring.h"
@@ -41,10 +45,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QButton();
- QButton(QWidget *);
-
- virtual ~QButton();
+ QButton(QWidget *parent=0);
+ ~QButton();
// member functions --------------------------------------------------------
@@ -58,6 +60,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QButton(const QButton &);
QButton &operator=(const QButton &);
diff --git a/WebCore/kwq/KWQCString.h b/WebCore/kwq/KWQCString.h
index a142c22..9b7ea6b 100644
--- a/WebCore/kwq/KWQCString.h
+++ b/WebCore/kwq/KWQCString.h
@@ -26,6 +26,10 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// FIXME: does our implementation of QCString really need to inherit from
// QByteArray and QArray?
diff --git a/WebCore/kwq/KWQCheckBox.h b/WebCore/kwq/KWQCheckBox.h
index ba756de..55e2c40 100644
--- a/WebCore/kwq/KWQCheckBox.h
+++ b/WebCore/kwq/KWQCheckBox.h
@@ -26,6 +26,10 @@
#ifndef QCHECKBOX_H_
#define QCHECKBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
// class QCheckBox =============================================================
@@ -40,9 +44,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QCheckBox();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QCheckBox() {}
+#endif
+
QCheckBox(QWidget *);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QCheckBox() {}
+#endif
+
// member functions --------------------------------------------------------
void setChecked(bool);
@@ -54,8 +67,10 @@ public:
// private ---------------------------------------------------------------------
private:
- QCheckBox(const QCheckBox &);
- QCheckBox &operator=(const QCheckBox &);
+ // no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
+ QCheckBox(const QCheckBox &);
+ QCheckBox &operator=(const QCheckBox &);
}; // class QCheckBox ==========================================================
diff --git a/WebCore/kwq/KWQColor.h b/WebCore/kwq/KWQColor.h
index bb52036..e8de1f2 100644
--- a/WebCore/kwq/KWQColor.h
+++ b/WebCore/kwq/KWQColor.h
@@ -26,6 +26,10 @@
#ifndef QCOLOR_H_
#define QCOLOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qstring.h"
@@ -48,7 +52,10 @@ public:
QColor(const char *);
QColor(const QColor &);
- ~QColor();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QColor() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQComboBox.h b/WebCore/kwq/KWQComboBox.h
index 1e4f557..42c9134 100644
--- a/WebCore/kwq/KWQComboBox.h
+++ b/WebCore/kwq/KWQComboBox.h
@@ -26,6 +26,10 @@
#ifndef QCOMBOBOX_H_
#define QCOMBOBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQListBox.h>
#include "qwidget.h"
@@ -43,7 +47,6 @@ public:
QComboBox(QWidget *parent=0, const char *name=0);
QComboBox(bool rw, QWidget *parent=0, const char *name=0);
-
~QComboBox();
// member functions --------------------------------------------------------
@@ -64,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QComboBox(const QComboBox &);
QComboBox &operator=(const QComboBox &);
diff --git a/WebCore/kwq/KWQCompletion.h b/WebCore/kwq/KWQCompletion.h
index cac7c1c..86f6762 100644
--- a/WebCore/kwq/KWQCompletion.h
+++ b/WebCore/kwq/KWQCompletion.h
@@ -26,12 +26,16 @@
#ifndef KWQCOMPLETION_H_
#define KWQCOMPLETION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qstringlist.h>
-// class QCompletion ===========================================================
+// class KCompletion ===========================================================
-class QCompletion : public QObject {
+class KCompletion : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -42,9 +46,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QCompletion();
-
- ~QCompletion();
+ KCompletion();
+ virtual ~KCompletion();
// member functions --------------------------------------------------------
@@ -56,16 +59,25 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
- QCompletion(const QCompletion &);
- QCompletion &operator=(const QCompletion &);
-}; // class QCompletion ========================================================
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ KCompletion(const KCompletion &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ KCompletion &operator=(const KCompletion &);
+#endif
+}; // class KCompletion ========================================================
-// class QCompletionBase =======================================================
-class QCompletionBase {
+// class KCompletionBase =======================================================
+
+class KCompletionBase {
public:
// structs -----------------------------------------------------------------
@@ -76,13 +88,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QCompletionBase();
-
- ~QCompletionBase();
+ KCompletionBase();
+ virtual ~KCompletionBase();
// member functions --------------------------------------------------------
- QCompletion *completionObject(bool hsig = true);
+ KCompletion *completionObject(bool hsig = true);
// operators ---------------------------------------------------------------
@@ -90,11 +101,20 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
- QCompletionBase(const QCompletionBase &);
- QCompletionBase &operator=(const QCompletionBase &);
-}; // class QCompletionBase ====================================================
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ KCompletionBase(const KCompletionBase &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ KCompletionBase &operator=(const KCompletionBase &);
+#endif
+
+}; // class KCompletionBase ====================================================
#endif
diff --git a/WebCore/kwq/KWQCursor.h b/WebCore/kwq/KWQCursor.h
index 7bdec14..b137ac3 100644
--- a/WebCore/kwq/KWQCursor.h
+++ b/WebCore/kwq/KWQCursor.h
@@ -26,6 +26,10 @@
#ifndef QCURSOR_H
#define QCURSOR_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QCursor ===============================================================
class QCursor {
@@ -39,9 +43,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QCursor();
-
QCursor(const QCursor &);
-
~QCursor();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQDCOPClient.h b/WebCore/kwq/KWQDCOPClient.h
index 8e0d76d..6169beb 100644
--- a/WebCore/kwq/KWQDCOPClient.h
+++ b/WebCore/kwq/KWQDCOPClient.h
@@ -26,6 +26,10 @@
#ifndef DCOPCLIENT_H_
#define DCOPCLIENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qcstring.h>
diff --git a/WebCore/kwq/KWQDataStream.h b/WebCore/kwq/KWQDataStream.h
index be0dded..80db5aa 100644
--- a/WebCore/kwq/KWQDataStream.h
+++ b/WebCore/kwq/KWQDataStream.h
@@ -26,6 +26,10 @@
#ifndef KWQDATASTREAM_H_
#define KWQDATASTREAM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qarray.h"
#include "qstring.h"
#include "qcstring.h"
@@ -51,6 +55,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
+ QDataStream();
QDataStream(QByteArray, int);
virtual ~QDataStream();
@@ -69,6 +74,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QDataStream(const QDataStream &);
QDataStream &operator=(const QDataStream &);
diff --git a/WebCore/kwq/KWQDateTime.h b/WebCore/kwq/KWQDateTime.h
index bc1eafb..9ec7036 100644
--- a/WebCore/kwq/KWQDateTime.h
+++ b/WebCore/kwq/KWQDateTime.h
@@ -26,6 +26,10 @@
#ifndef QDATETIME_H_
#define QDATETIME_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QTime =================================================================
class QTime {
@@ -39,9 +43,11 @@ public:
QTime();
QTime(int, int);
- QTime(const QTime &);
- ~QTime();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTime() {}
+#endif
// member functions --------------------------------------------------------
@@ -58,6 +64,14 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QTime(const QTime &);
+#endif
+
}; // class QTime ==============================================================
@@ -75,10 +89,12 @@ public:
QDate(int y, int m, int d);
- QDate(const QDate &);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QDate() {}
+#endif
// member functions --------------------------------------------------------
-
// operators ---------------------------------------------------------------
QDate &operator=(const QDate &);
@@ -86,6 +102,14 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QDate(const QDate &);
+#endif
+
}; // class QDate ==============================================================
@@ -104,9 +128,13 @@ public:
QDateTime();
QDateTime(QDate date, QTime time);
-
QDateTime(const QDateTime &);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QDateTime() {}
+#endif
+
// member functions --------------------------------------------------------
int secsTo(const QDateTime &) const;
@@ -114,7 +142,11 @@ public:
// operators ---------------------------------------------------------------
- QDateTime &operator=(const QDateTime &);
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QDateTime &operator=(const QDateTime &);
+ //
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
diff --git a/WebCore/kwq/KWQDef.h b/WebCore/kwq/KWQDef.h
index b4a79cf..bef10b6 100644
--- a/WebCore/kwq/KWQDef.h
+++ b/WebCore/kwq/KWQDef.h
@@ -26,6 +26,10 @@
#ifndef KWQDEF_H_
#define KWQDEF_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned uint;
diff --git a/WebCore/kwq/KWQDict.h b/WebCore/kwq/KWQDict.h
index 27c50f0..ccc8cba 100644
--- a/WebCore/kwq/KWQDict.h
+++ b/WebCore/kwq/KWQDict.h
@@ -26,6 +26,10 @@
#ifndef QDICT_H_
#define QDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQCollection.h>
#include "qstring.h"
@@ -42,9 +46,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QDict(int size=17, bool caseSensitive=TRUE);
-
QDict(const QDict<T> &);
-
~QDict();
// member functions --------------------------------------------------------
@@ -76,8 +78,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QDictIterator() {}
+#endif
+
QDictIterator(const QDict<T> &);
-
~QDictIterator();
// member functions --------------------------------------------------------
@@ -94,9 +100,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDictIterator(const QDictIterator &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDictIterator &operator=(const QDictIterator &);
+#endif
}; // class QDictIterator ======================================================
diff --git a/WebCore/kwq/KWQDrawUtil.h b/WebCore/kwq/KWQDrawUtil.h
index 3393e7c..20ca608 100644
--- a/WebCore/kwq/KWQDrawUtil.h
+++ b/WebCore/kwq/KWQDrawUtil.h
@@ -26,6 +26,10 @@
#ifndef QDRAWUTIL_H_
#define QDRAWUTIL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpainter.h"
#include "qpalette.h"
#include "qbrush.h"
diff --git a/WebCore/kwq/KWQEvent.h b/WebCore/kwq/KWQEvent.h
index ea4a5d1..ba7d057 100644
--- a/WebCore/kwq/KWQEvent.h
+++ b/WebCore/kwq/KWQEvent.h
@@ -26,6 +26,10 @@
#ifndef QEVENT_H_
#define QEVENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qregion.h"
#include "qpoint.h"
@@ -54,8 +58,12 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QEvent() {}
+#endif
+
QEvent(Type);
-
virtual ~QEvent();
// member functions --------------------------------------------------------
@@ -68,9 +76,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QEvent(const QEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QEvent &operator=(const QEvent &);
+#endif
}; // class QEvent =============================================================
@@ -87,9 +104,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QMouseEvent() {}
+#endif
+
QMouseEvent(Type type, const QPoint &pos, int button, int state);
- virtual ~QMouseEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QMouseEvent() {}
+#endif
// member functions --------------------------------------------------------
@@ -107,9 +132,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QMouseEvent(const QMouseEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QMouseEvent &operator=(const QMouseEvent &);
+#endif
}; // class QMouseEvent ========================================================
@@ -126,9 +160,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTimerEvent() {}
+#endif
+
QTimerEvent(int timerId);
- virtual ~QTimerEvent();
+ ~QTimerEvent();
// member functions --------------------------------------------------------
@@ -140,9 +179,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTimerEvent(const QTimerEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTimerEvent &operator=(const QTimerEvent &);
+#endif
}; // class QTimerEvent ========================================================
@@ -158,10 +206,17 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
- QKeyEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QKeyEvent() {}
+#endif
+
QKeyEvent(Type, Key, int, int);
- virtual ~QKeyEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QKeyEvent() {}
+#endif
// member functions --------------------------------------------------------
@@ -175,9 +230,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QKeyEvent(const QKeyEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QKeyEvent &operator=(const QKeyEvent &);
+#endif
}; // class QKeyEvent ==========================================================
@@ -194,9 +258,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QFocusEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QFocusEvent() {}
+#endif
+
+ QFocusEvent(Type);
- virtual ~QFocusEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QFocusEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -205,9 +277,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QFocusEvent(const QFocusEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QFocusEvent &operator=(const QFocusEvent &);
+#endif
}; // class QFocusEvent ========================================================
@@ -224,9 +305,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QHideEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QHideEvent() {}
+#endif
- virtual ~QHideEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QHideEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -235,9 +322,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QHideEvent(const QHideEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QHideEvent &operator=(const QHideEvent &);
+#endif
}; // class QHideEvent =========================================================
@@ -254,9 +350,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QResizeEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QResizeEvent() {}
+#endif
- virtual ~QResizeEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QResizeEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -265,9 +367,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QResizeEvent(const QResizeEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QResizeEvent &operator=(const QResizeEvent &);
+#endif
}; // class QResizeEvent =======================================================
@@ -284,10 +395,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QShowEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QShowEvent() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QShowEvent() {}
+#endif
- virtual ~QShowEvent();
-
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -295,9 +412,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QShowEvent(const QShowEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QShowEvent &operator=(const QShowEvent &);
+#endif
}; // class QShowEvent =========================================================
@@ -314,9 +440,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QWheelEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QWheelEvent() {}
+#endif
- virtual ~QWheelEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QWheelEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -325,9 +457,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QWheelEvent(const QWheelEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QWheelEvent &operator=(const QWheelEvent &);
+#endif
}; // class QWheelEvent ========================================================
diff --git a/WebCore/kwq/KWQFile.h b/WebCore/kwq/KWQFile.h
index 08a520f..f1cfece 100644
--- a/WebCore/kwq/KWQFile.h
+++ b/WebCore/kwq/KWQFile.h
@@ -26,6 +26,10 @@
#ifndef QFILE_H_
#define QFILE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QFile =================================================================
@@ -42,7 +46,6 @@ public:
QFile();
QFile(const QString &);
-
~QFile();
// member functions --------------------------------------------------------
@@ -61,6 +64,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QFile(const QFile &);
QFile &operator=(const QFile &);
diff --git a/WebCore/kwq/KWQFont.h b/WebCore/kwq/KWQFont.h
index 688a260..bc2042e 100644
--- a/WebCore/kwq/KWQFont.h
+++ b/WebCore/kwq/KWQFont.h
@@ -26,6 +26,10 @@
#ifndef QFONT_H_
#define QFONT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class QFont =================================================================
@@ -46,9 +50,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QFont();
-
QFont(const QFont &);
-
~QFont();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQFontInfo.h b/WebCore/kwq/KWQFontInfo.h
index bd24c56..9699903 100644
--- a/WebCore/kwq/KWQFontInfo.h
+++ b/WebCore/kwq/KWQFontInfo.h
@@ -26,6 +26,10 @@
#ifndef QFONTINFO_H_
#define QFONTINFO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qfont.h"
// class QFontInfo =============================================================
@@ -42,7 +46,6 @@ public:
QFontInfo(const QFont &);
QFontInfo(const QFontInfo &);
-
~QFontInfo();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQFontMetrics.h b/WebCore/kwq/KWQFontMetrics.h
index f652f09..b872af1 100644
--- a/WebCore/kwq/KWQFontMetrics.h
+++ b/WebCore/kwq/KWQFontMetrics.h
@@ -26,6 +26,10 @@
#ifndef QFONTMETRICS_H_
#define QFONTMETRICS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qrect.h"
#include "qsize.h"
#include "qstring.h"
@@ -46,7 +50,6 @@ public:
QFontMetrics();
QFontMetrics(const QFont &);
QFontMetrics(const QFontMetrics &);
-
~QFontMetrics();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQGuardedPtr.h b/WebCore/kwq/KWQGuardedPtr.h
index 6e4234b..ac779bf 100644
--- a/WebCore/kwq/KWQGuardedPtr.h
+++ b/WebCore/kwq/KWQGuardedPtr.h
@@ -26,6 +26,10 @@
#ifndef QGUARDEDPTR_H_
#define QGUARDEDPTR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
// class QGuardedPtr ===========================================================
@@ -52,15 +56,13 @@ public:
// operators ---------------------------------------------------------------
+ QGuardedPtr &operator=(const QGuardedPtr &);
operator T *() const;
T *operator->() const;
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- QGuardedPtr &operator=(const QGuardedPtr &);
-
}; // class QGuardedPtr ========================================================
#endif
diff --git a/WebCore/kwq/KWQIcon.h b/WebCore/kwq/KWQIcon.h
index 42bfe25..f487c33 100644
--- a/WebCore/kwq/KWQIcon.h
+++ b/WebCore/kwq/KWQIcon.h
@@ -26,6 +26,10 @@
#ifndef KWQICON_H_
#define KWQICON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class KIcon =================================================================
class KIcon {
@@ -45,7 +49,10 @@ public:
KIcon();
- ~KIcon();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~KIcon() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -54,9 +61,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KIcon(const KIcon &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KIcon &operator=(const KIcon &);
+#endif
}; // class KIcon ==============================================================
diff --git a/WebCore/kwq/KWQImage.h b/WebCore/kwq/KWQImage.h
index 4c349de..bfc343e 100644
--- a/WebCore/kwq/KWQImage.h
+++ b/WebCore/kwq/KWQImage.h
@@ -26,6 +26,10 @@
#ifndef QIMAGE_H_
#define QIMAGE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qcolor.h"
@@ -43,7 +47,6 @@ public:
QImage();
QImage(const QImage &);
-
~QImage();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQKCharsets.h b/WebCore/kwq/KWQKCharsets.h
index a489c07..d7e6770 100644
--- a/WebCore/kwq/KWQKCharsets.h
+++ b/WebCore/kwq/KWQKCharsets.h
@@ -26,6 +26,10 @@
#ifndef KCHARSETS_H_
#define KCHARSETS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qfont.h>
class QString;
diff --git a/WebCore/kwq/KWQKComboBox.h b/WebCore/kwq/KWQKComboBox.h
index e13018f..406b058 100644
--- a/WebCore/kwq/KWQKComboBox.h
+++ b/WebCore/kwq/KWQKComboBox.h
@@ -26,13 +26,17 @@
#ifndef KCOMBOBOX_H_
#define KCOMBOBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qcombobox.h>
#include <KWQCompletion.h>
// class KComboBox =============================================================
-class KComboBox : public QComboBox, public QCompletionBase {
+class KComboBox : public QComboBox, public KCompletionBase {
public:
// structs -----------------------------------------------------------------
diff --git a/WebCore/kwq/KWQKCompletionBox.h b/WebCore/kwq/KWQKCompletionBox.h
index 0d29237..c95a18c 100644
--- a/WebCore/kwq/KWQKCompletionBox.h
+++ b/WebCore/kwq/KWQKCompletionBox.h
@@ -26,6 +26,10 @@
#ifndef KCOMPLETIONBOX_H_
#define KCOMPLETIONBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "klistbox.h"
// class KCompletionBox ========================================================
diff --git a/WebCore/kwq/KWQKConfigBase.h b/WebCore/kwq/KWQKConfigBase.h
index 6363563..939ee71 100644
--- a/WebCore/kwq/KWQKConfigBase.h
+++ b/WebCore/kwq/KWQKConfigBase.h
@@ -26,6 +26,10 @@
#ifndef KCONFIG_H_
#define KCONFIG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qcolor.h>
#include <qfont.h>
diff --git a/WebCore/kwq/KWQKCursor.h b/WebCore/kwq/KWQKCursor.h
index 19acee2..5edeae3 100644
--- a/WebCore/kwq/KWQKCursor.h
+++ b/WebCore/kwq/KWQKCursor.h
@@ -26,6 +26,10 @@
#ifndef KCURSOR_H_
#define KCURSOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
// class KCursor ===============================================================
diff --git a/WebCore/kwq/KWQKDebug.h b/WebCore/kwq/KWQKDebug.h
index 139ae65..b1e31f4 100644
--- a/WebCore/kwq/KWQKDebug.h
+++ b/WebCore/kwq/KWQKDebug.h
@@ -26,6 +26,10 @@
#ifndef KDEBUG_H_
#define KDEBUG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
class kdbgstream;
diff --git a/WebCore/kwq/KWQKFileDialog.h b/WebCore/kwq/KWQKFileDialog.h
index b0e1221..607c05e 100644
--- a/WebCore/kwq/KWQKFileDialog.h
+++ b/WebCore/kwq/KWQKFileDialog.h
@@ -26,6 +26,10 @@
#ifndef KFILEDIALOG_H_
#define KFILEDIALOG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <qwidget.h>
diff --git a/WebCore/kwq/KWQKFileItem.h b/WebCore/kwq/KWQKFileItem.h
index e749c3e..25b38b1 100644
--- a/WebCore/kwq/KWQKFileItem.h
+++ b/WebCore/kwq/KWQKFileItem.h
@@ -26,6 +26,10 @@
#ifndef KFILEITEM_H_
#define KFILEITEM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <netaccess.h>
// class KFileItem =============================================================
@@ -44,6 +48,8 @@ public:
KFileItem(const KIO::UDSEntry &, const KURL &, bool foo=false,
bool bar=false);
+ virtual ~KFileItem();
+
// member functions --------------------------------------------------------
bool isDir() const;
@@ -54,9 +60,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KFileItem(const KFileItem &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KFileItem &operator=(const KFileItem &);
+#endif
}; // class KFileItem ==========================================================
diff --git a/WebCore/kwq/KWQKGlobal.h b/WebCore/kwq/KWQKGlobal.h
index a56df0a..4742402 100644
--- a/WebCore/kwq/KWQKGlobal.h
+++ b/WebCore/kwq/KWQKGlobal.h
@@ -26,6 +26,10 @@
#ifndef KGLOBAL_H_
#define KGLOBAL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <kinstance.h>
@@ -59,14 +63,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
- KGlobal();
+ KGlobal() {}
#endif
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
- ~KGlobal();
+ ~KGlobal() {}
#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQKGlobalSettings.h b/WebCore/kwq/KWQKGlobalSettings.h
index f28e2a2..8478383 100644
--- a/WebCore/kwq/KWQKGlobalSettings.h
+++ b/WebCore/kwq/KWQKGlobalSettings.h
@@ -26,6 +26,10 @@
#ifndef KGLOBALSETTINGS_H_
#define KGLOBALSETTINGS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QFont;
// class KGlobalSettings =======================================================
@@ -48,7 +52,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KGlobalSettings() {}
#endif
diff --git a/WebCore/kwq/KWQKIONetAccess.h b/WebCore/kwq/KWQKIONetAccess.h
index c663cad..425a65d 100644
--- a/WebCore/kwq/KWQKIONetAccess.h
+++ b/WebCore/kwq/KWQKIONetAccess.h
@@ -26,6 +26,10 @@
#ifndef NETACCESS_H_
#define NETACCESS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qvaluelist.h>
#include <kurl.h>
@@ -49,10 +53,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- UDSAtom();
-
- ~UDSAtom();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ UDSAtom() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~UDSAtom() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -60,9 +70,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
UDSAtom(const UDSAtom &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
UDSAtom &operator=(const UDSAtom &);
+#endif
}; // class UDSAtom ============================================================
@@ -86,10 +105,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- NetAccess();
-
- ~NetAccess();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ NetAccess() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~NetAccess() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -97,9 +122,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
NetAccess(const NetAccess &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
NetAccess &operator=(const NetAccess &);
+#endif
}; // class NetAccess ==========================================================
diff --git a/WebCore/kwq/KWQKIconLoader.h b/WebCore/kwq/KWQKIconLoader.h
index 9ca3b40..48096e6 100644
--- a/WebCore/kwq/KWQKIconLoader.h
+++ b/WebCore/kwq/KWQKIconLoader.h
@@ -26,6 +26,10 @@
#ifndef KICONLOADER_H_
#define KICONLOADER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpixmap.h>
#include <qstring.h>
#include <kinstance.h>
diff --git a/WebCore/kwq/KWQKImageIO.h b/WebCore/kwq/KWQKImageIO.h
index d428a01..843ed56 100644
--- a/WebCore/kwq/KWQKImageIO.h
+++ b/WebCore/kwq/KWQKImageIO.h
@@ -26,6 +26,10 @@
#ifndef KIMAGEIO_H_
#define KIMAGEIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstringlist.h>
// class KImageIO ==============================================================
@@ -48,10 +52,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KImageIO();
-
- ~KImageIO();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KImageIO() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~KImageIO() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -59,9 +69,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KImageIO(const KImageIO &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KImageIO &operator=(const KImageIO &);
+#endif
}; // class KImageIO ===========================================================
diff --git a/WebCore/kwq/KWQKInstance.h b/WebCore/kwq/KWQKInstance.h
index bf9ce7b..abffcfd 100644
--- a/WebCore/kwq/KWQKInstance.h
+++ b/WebCore/kwq/KWQKInstance.h
@@ -26,6 +26,10 @@
#ifndef KINSTANCE_H_
#define KINSTANCE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qcstring.h>
class KIconLoader;
diff --git a/WebCore/kwq/KWQKJob.h b/WebCore/kwq/KWQKJob.h
index 4c04a54..8fbe161 100644
--- a/WebCore/kwq/KWQKJob.h
+++ b/WebCore/kwq/KWQKJob.h
@@ -26,6 +26,10 @@
#ifndef JOB_H_
#define JOB_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kurl.h>
#include "jobclasses.h"
diff --git a/WebCore/kwq/KWQKJobClasses.h b/WebCore/kwq/KWQKJobClasses.h
index 94dbf1c..e3dcd65 100644
--- a/WebCore/kwq/KWQKJobClasses.h
+++ b/WebCore/kwq/KWQKJobClasses.h
@@ -26,6 +26,10 @@
#ifndef JOBCLASSES_H_
#define JOBCLASSES_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qstring.h>
@@ -43,8 +47,11 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
- Job();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ Job() {}
+#endif
+
virtual ~Job();
// member functions --------------------------------------------------------
@@ -60,9 +67,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Job(const Job &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Job &operator=(const Job &);
+#endif
}; // class Job ================================================================
@@ -80,9 +96,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- SimpleJob();
-
- virtual ~SimpleJob();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ SimpleJob() {}
+#endif
+
+ ~SimpleJob();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -91,9 +110,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
SimpleJob(const SimpleJob &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
SimpleJob &operator=(const SimpleJob &);
+#endif
}; // class SimpleJob ==========================================================
@@ -111,9 +139,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- TransferJob();
-
- virtual ~TransferJob();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ TransferJob() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~TransferJob() {}
+#endif
// member functions --------------------------------------------------------
@@ -126,9 +160,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
TransferJob(const TransferJob &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
TransferJob &operator=(const TransferJob &);
+#endif
}; // class TransferJob ========================================================
diff --git a/WebCore/kwq/KWQKKAction.h b/WebCore/kwq/KWQKKAction.h
index 1e06c54..81e31c5 100644
--- a/WebCore/kwq/KWQKKAction.h
+++ b/WebCore/kwq/KWQKKAction.h
@@ -26,6 +26,10 @@
#ifndef KACTION_H_
#define KACTION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpopupmenu.h>
// class KAction ===============================================================
diff --git a/WebCore/kwq/KWQKLineEdit.h b/WebCore/kwq/KWQKLineEdit.h
index 320c1c4..bf92cb7 100644
--- a/WebCore/kwq/KWQKLineEdit.h
+++ b/WebCore/kwq/KWQKLineEdit.h
@@ -26,6 +26,10 @@
#ifndef KLINEEDIT_H_
#define KLINEEDIT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qlineedit.h>
#include <KWQCompletion.h>
@@ -34,7 +38,7 @@
// class __class_name__ ========================================================
-class KLineEdit : public QLineEdit, public QCompletionBase {
+class KLineEdit : public QLineEdit, public KCompletionBase {
public:
// structs -----------------------------------------------------------------
diff --git a/WebCore/kwq/KWQKListBox.h b/WebCore/kwq/KWQKListBox.h
index af27e08..07c8b4b 100644
--- a/WebCore/kwq/KWQKListBox.h
+++ b/WebCore/kwq/KWQKListBox.h
@@ -26,6 +26,10 @@
#ifndef KLISTBOX_H_
#define KLISTBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQListBox.h>
#include <qwidget.h>
diff --git a/WebCore/kwq/KWQKLocale.h b/WebCore/kwq/KWQKLocale.h
index fa5efd5..2117843 100644
--- a/WebCore/kwq/KWQKLocale.h
+++ b/WebCore/kwq/KWQKLocale.h
@@ -26,6 +26,10 @@
#ifndef KLOCALE_H_
#define KLOCALE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
QString i18n(const char* text);
diff --git a/WebCore/kwq/KWQKMimeType.h b/WebCore/kwq/KWQKMimeType.h
index 0b3f004..685cef1 100644
--- a/WebCore/kwq/KWQKMimeType.h
+++ b/WebCore/kwq/KWQKMimeType.h
@@ -26,6 +26,10 @@
#ifndef KMIMETYPE_H_
#define KMIMETYPE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kdecore/kglobal.h>
#include <kdecore/kurl.h>
@@ -46,10 +50,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
KSharedPtr();
-
KSharedPtr(const KSharedPtr &);
-
- virtual ~KSharedPtr();
+ ~KSharedPtr();
// member functions --------------------------------------------------------
@@ -84,9 +86,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KMimeType();
-
- ~KMimeType();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KMimeType() {}
+#endif
+
+ virtual ~KMimeType();
// member functions --------------------------------------------------------
@@ -98,9 +103,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KMimeType(const KMimeType &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KMimeType &operator=(const KMimeType &);
+#endif
}; // class KMimeType ==========================================================
diff --git a/WebCore/kwq/KWQKPartsBrowserExtension.h b/WebCore/kwq/KWQKPartsBrowserExtension.h
index b90bff5..ca2a80b 100644
--- a/WebCore/kwq/KWQKPartsBrowserExtension.h
+++ b/WebCore/kwq/KWQKPartsBrowserExtension.h
@@ -26,6 +26,10 @@
#ifndef BROWSEREXTENSION_H_
#define BROWSEREXTENSION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpoint.h>
#include <qevent.h>
#include <KWQDataStream.h>
@@ -49,7 +53,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
KXMLGUIClient();
-
~KXMLGUIClient();
// member functions --------------------------------------------------------
@@ -59,21 +62,43 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KXMLGUIClient(const KXMLGUIClient &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KXMLGUIClient &operator=(const KXMLGUIClient &);
+#endif
}; // class KXMLGUIClient ======================================================
namespace KParts {
+// struct URLArgs ==============================================================
+
struct URLArgs {
+
QString frameName;
QString serviceType;
-};
+
+ URLArgs();
+ URLArgs( const URLArgs &);
+ URLArgs &operator=(const URLArgs &);
+ virtual ~URLArgs();
+
+}; // struct URLArgs ===========================================================
+
+
+// struct WindowArgs ===========================================================
struct WindowArgs {
+
int x;
int y;
int width;
@@ -83,11 +108,17 @@ struct WindowArgs {
bool toolBarsVisible;
bool resizable;
bool fullscreen;
-};
+
+ WindowArgs();
+ WindowArgs(const WindowArgs &);
+ WindowArgs &operator=(const WindowArgs &);
+
+}; // struct WindowArgs ========================================================
+
// class BrowserExtension ======================================================
-class BrowserExtension {
+class BrowserExtension : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -98,9 +129,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- BrowserExtension();
-
- ~BrowserExtension();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ BrowserExtension() {}
+#endif
+
+ virtual ~BrowserExtension();
// member functions --------------------------------------------------------
@@ -120,16 +154,25 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserExtension(const BrowserExtension &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserExtension &operator=(const BrowserExtension &);
+#endif
}; // class BrowserExtension ===================================================
// class BrowserHostExtension ==================================================
-class BrowserHostExtension {
+class BrowserHostExtension : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -141,7 +184,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
BrowserHostExtension();
- ~BrowserHostExtension();
+ virtual ~BrowserHostExtension();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -150,9 +193,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserHostExtension(const BrowserHostExtension &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserHostExtension &operator=(const BrowserHostExtension &);
+#endif
}; // class BrowserHostExtension ===============================================
diff --git a/WebCore/kwq/KWQKPartsBrowserInterface.h b/WebCore/kwq/KWQKPartsBrowserInterface.h
index 8e38a5d..e8d369e 100644
--- a/WebCore/kwq/KWQKPartsBrowserInterface.h
+++ b/WebCore/kwq/KWQKPartsBrowserInterface.h
@@ -26,6 +26,10 @@
#ifndef BROWSERINTERFACE_H_
#define BROWSERINTERFACE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qvariant.h>
@@ -44,9 +48,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- BrowserInterface(QObject *parent, const char *name = 0);
-
- ~BrowserInterface();
+ BrowserInterface(QObject *parent, const char *name=0);
+ virtual ~BrowserInterface();
// member functions --------------------------------------------------------
@@ -58,9 +61,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserInterface(const BrowserInterface &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserInterface &operator=(const BrowserInterface &);
+#endif
}; // class BrowserInterface ===================================================
diff --git a/WebCore/kwq/KWQKPartsEvent.h b/WebCore/kwq/KWQKPartsEvent.h
index 2ce1eeb..f15c2ac 100644
--- a/WebCore/kwq/KWQKPartsEvent.h
+++ b/WebCore/kwq/KWQKPartsEvent.h
@@ -26,6 +26,10 @@
#ifndef EVENT_H_
#define EVENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qevent.h>
class QPainter;
@@ -50,7 +54,10 @@ public:
Event(const char *);
- virtual ~Event();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~Event() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -59,9 +66,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Event(const Event &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Event &operator=(const Event &);
+#endif
}; // class Event ==============================================================
diff --git a/WebCore/kwq/KWQKPartsFactory.h b/WebCore/kwq/KWQKPartsFactory.h
index c019da5..d5a6c84 100644
--- a/WebCore/kwq/KWQKPartsFactory.h
+++ b/WebCore/kwq/KWQKPartsFactory.h
@@ -26,6 +26,10 @@
#ifndef FACTORY_H_
#define FACTORY_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "part.h"
namespace KParts {
@@ -44,8 +48,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
Factory();
-
- ~Factory();
+ virtual ~Factory();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -54,9 +57,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Factory(const Factory &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Factory &operator=(const Factory &);
+#endif
}; // class Factory ============================================================
diff --git a/WebCore/kwq/KWQKPartsHistoryProvider.h b/WebCore/kwq/KWQKPartsHistoryProvider.h
index edbcdb7..aeaf5d9 100644
--- a/WebCore/kwq/KWQKPartsHistoryProvider.h
+++ b/WebCore/kwq/KWQKPartsHistoryProvider.h
@@ -26,6 +26,10 @@
#ifndef HISTORYPROVIDER_H_
#define HISTORYPROVIDER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
namespace KParts {
@@ -47,8 +51,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
HistoryProvider();
-
- ~HistoryProvider();
+ virtual ~HistoryProvider();
// member functions --------------------------------------------------------
@@ -60,9 +63,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
HistoryProvider(const HistoryProvider &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
HistoryProvider &operator=(const HistoryProvider &);
+#endif
}; // class HistoryProvider ====================================================
diff --git a/WebCore/kwq/KWQKPartsPart.h b/WebCore/kwq/KWQKPartsPart.h
index 52334b6..6a2381b 100644
--- a/WebCore/kwq/KWQKPartsPart.h
+++ b/WebCore/kwq/KWQKPartsPart.h
@@ -26,6 +26,10 @@
#ifndef PART_H_
#define PART_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kurl.h>
#include <qobject.h>
#include <qvariant.h>
@@ -58,8 +62,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
Part();
-
- ~Part();
+ virtual ~Part();
// member functions --------------------------------------------------------
@@ -72,9 +75,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Part(const Part &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Part &operator=(const Part &);
+#endif
}; // class Part ===============================================================
@@ -93,8 +105,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
ReadOnlyPart();
-
- ~ReadOnlyPart();
+ virtual ~ReadOnlyPart();
// member functions --------------------------------------------------------
@@ -106,9 +117,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
ReadOnlyPart(const ReadOnlyPart &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
ReadOnlyPart &operator=(const ReadOnlyPart &);
+#endif
}; // class ReadOnlyPart =======================================================
@@ -126,10 +146,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- GUIActivateEvent();
-
- ~GUIActivateEvent();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ GUIActivateEvent() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~GUIActivateEvent() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -137,9 +163,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
GUIActivateEvent(const GUIActivateEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
GUIActivateEvent &operator=(const GUIActivateEvent &);
+#endif
}; // class GUIActivateEvent ===================================================
diff --git a/WebCore/kwq/KWQKSimpleConfig.h b/WebCore/kwq/KWQKSimpleConfig.h
index 5a940d7..a6bc792 100644
--- a/WebCore/kwq/KWQKSimpleConfig.h
+++ b/WebCore/kwq/KWQKSimpleConfig.h
@@ -26,4 +26,8 @@
#ifndef KSIMPLECONFIG_H_
#define KSIMPLECONFIG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/kwq/KWQKStandardDirs.h b/WebCore/kwq/KWQKStandardDirs.h
index ec0d9fa..daa6787 100644
--- a/WebCore/kwq/KWQKStandardDirs.h
+++ b/WebCore/kwq/KWQKStandardDirs.h
@@ -26,6 +26,10 @@
#ifndef KSTDDIRS_H_
#define KSTDDIRS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include "kglobal.h"
diff --git a/WebCore/kwq/KWQKStaticDeleter.h b/WebCore/kwq/KWQKStaticDeleter.h
index 187f6ab..0997cfb 100644
--- a/WebCore/kwq/KWQKStaticDeleter.h
+++ b/WebCore/kwq/KWQKStaticDeleter.h
@@ -26,6 +26,10 @@
#ifndef KSTATICDELETER_H_
#define KSTATICDELETER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class KStaticDeleter ========================================================
template <class T> class KStaticDeleter {
diff --git a/WebCore/kwq/KWQKStringHandler.h b/WebCore/kwq/KWQKStringHandler.h
index 95caba6..0f0ce7e 100644
--- a/WebCore/kwq/KWQKStringHandler.h
+++ b/WebCore/kwq/KWQKStringHandler.h
@@ -26,6 +26,10 @@
#ifndef KSTRINGHANDLER_H_
#define KSTRINGHANDLER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
// class KStringHandler ========================================================
@@ -44,7 +48,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KStringHandler() {}
#endif
diff --git a/WebCore/kwq/KWQKURL.h b/WebCore/kwq/KWQKURL.h
index 34950dc..8a5533d 100644
--- a/WebCore/kwq/KWQKURL.h
+++ b/WebCore/kwq/KWQKURL.h
@@ -26,6 +26,10 @@
#ifndef KURL_H_
#define KURL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class KURL ==================================================================
diff --git a/WebCore/kwq/KWQKWin.h b/WebCore/kwq/KWQKWin.h
index 072b29f..44f7640 100644
--- a/WebCore/kwq/KWQKWin.h
+++ b/WebCore/kwq/KWQKWin.h
@@ -26,6 +26,10 @@
#ifndef KWIN_H_
#define KWIN_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qrect.h>
#include <qstring.h>
@@ -53,7 +57,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KWin() {}
#endif
diff --git a/WebCore/kwq/KWQKWinModule.h b/WebCore/kwq/KWQKWinModule.h
index 341752f..12922d6 100644
--- a/WebCore/kwq/KWQKWinModule.h
+++ b/WebCore/kwq/KWQKWinModule.h
@@ -26,6 +26,10 @@
#ifndef KWINMODULE_H_
#define KWINMODULE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
class QRect;
diff --git a/WebCore/kwq/KWQLabel.h b/WebCore/kwq/KWQLabel.h
index 4679fbb..418aadd 100644
--- a/WebCore/kwq/KWQLabel.h
+++ b/WebCore/kwq/KWQLabel.h
@@ -26,6 +26,10 @@
#ifndef QLABEL_H_
#define QLABEL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQFrame.h>
#include "qwidget.h"
#include "qstring.h"
@@ -42,10 +46,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QLabel() {}
+#endif
+
QLabel(QWidget *parent);
QLabel(const QString &, QWidget *);
-
- virtual ~QLabel();
+ ~QLabel();
// member functions --------------------------------------------------------
@@ -59,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QLabel(const QLabel &);
QLabel &operator=(const QLabel &);
diff --git a/WebCore/kwq/KWQLineEdit.h b/WebCore/kwq/KWQLineEdit.h
index a95ddd1..32dcf75 100644
--- a/WebCore/kwq/KWQLineEdit.h
+++ b/WebCore/kwq/KWQLineEdit.h
@@ -26,6 +26,10 @@
#ifndef QLINEEDIT_H_
#define QLINEEDIT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qevent.h"
#include "qstring.h"
@@ -71,6 +75,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QLineEdit(const QLineEdit &);
QLineEdit &operator=(const QLineEdit &);
diff --git a/WebCore/kwq/KWQListBox.h b/WebCore/kwq/KWQListBox.h
index b30eb6a..8400281 100644
--- a/WebCore/kwq/KWQListBox.h
+++ b/WebCore/kwq/KWQListBox.h
@@ -26,6 +26,10 @@
#ifndef KWQLISTBOX_H_
#define KWQLISTBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qscrollview.h>
#include <qstring.h>
@@ -50,7 +54,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QListBox();
-
~QListBox();
// member functions --------------------------------------------------------
@@ -72,6 +75,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QListBox(const QListBox &);
QListBox &operator=(const QListBox &);
@@ -92,8 +96,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QListBoxItem();
-
- ~QListBoxItem();
+ virtual ~QListBoxItem();
// member functions --------------------------------------------------------
@@ -111,6 +114,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QListBoxItem(const QListBoxItem &);
QListBoxItem &operator=(const QListBoxItem &);
@@ -130,8 +134,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QListBoxText(const QString & text=QString::null);
-
+ QListBoxText(const QString &text=QString::null);
~QListBoxText();
// member functions --------------------------------------------------------
@@ -142,6 +145,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QListBoxText(const QListBoxText &);
QListBoxText &operator=(const QListBoxText &);
diff --git a/WebCore/kwq/KWQMap.h b/WebCore/kwq/KWQMap.h
index 0c412b9..0681c6f 100644
--- a/WebCore/kwq/KWQMap.h
+++ b/WebCore/kwq/KWQMap.h
@@ -26,6 +26,10 @@
#ifndef QMAP_H_
#define QMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QMapIterator ==========================================================
@@ -41,9 +45,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
QMapIterator();
- QMapIterator(const QMapIterator<K,T>& it);
+ QMapIterator(const QMapIterator<K,T>&);
- ~QMapIterator();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QMapIterator() {}
+#endif
// member functions --------------------------------------------------------
@@ -59,9 +66,16 @@ public:
const T& operator*() const;
QMapIterator<K,T>& operator++();
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QMapIterator<K,T> &operator=(const QMapIterator<K,T> &);
+ //
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+
}; // class QMapIterator =======================================================
@@ -78,8 +92,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QMapConstIterator();
- QMapConstIterator(const QMapConstIterator<K,T>&);
- QMapConstIterator(const QMapIterator<K,T>&);
+ QMapConstIterator(const QMapConstIterator<K,T> &);
+ QMapConstIterator(const QMapIterator<K,T> &);
~QMapConstIterator();
@@ -91,11 +105,17 @@ public:
// operators ---------------------------------------------------------------
QMapConstIterator<K,T> &operator=(const QMapConstIterator<K,T> &);
- bool operator==(const QMapConstIterator<K,T>&) const;
- bool operator!=(const QMapConstIterator<K,T>&) const;
+ bool operator==(const QMapConstIterator<K,T> &) const;
+ bool operator!=(const QMapConstIterator<K,T> &) const;
const T &operator*() const;
QMapConstIterator<K,T>& operator++();
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QMapConstIterator<K,T> &operator=(const QMapConstIterator<K,T> &);
+ //
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
@@ -119,7 +139,6 @@ public:
QMap();
QMap(const QMap<K,T>&);
-
~QMap();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQMemArray.h b/WebCore/kwq/KWQMemArray.h
index eba6a2f..163cd93 100644
--- a/WebCore/kwq/KWQMemArray.h
+++ b/WebCore/kwq/KWQMemArray.h
@@ -26,6 +26,10 @@
#ifndef QARRAY_H_
#define QARRAY_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QArray ================================================================
@@ -40,13 +44,10 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QArray();
+ QArray() {}
QArray(int);
QArray(const QArray<T> &);
-
- QArray<T> &operator=(const QArray<T> &);
-
- ~QArray();
+ ~QArray() {}
// member functions --------------------------------------------------------
@@ -60,6 +61,7 @@ public:
// operators ---------------------------------------------------------------
+ QArray<T> &operator=(const QArray<T> &);
T &operator[](int) const;
bool operator==(const QArray<T> &);
bool operator!=(const QArray<T> &);
diff --git a/WebCore/kwq/KWQMovie.h b/WebCore/kwq/KWQMovie.h
index 7843d88..81e3b7c 100644
--- a/WebCore/kwq/KWQMovie.h
+++ b/WebCore/kwq/KWQMovie.h
@@ -26,6 +26,10 @@
#ifndef QMOVIE_H_
#define QMOVIE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
#include "qasyncio.h"
#include "qpixmap.h"
@@ -51,7 +55,6 @@ public:
QMovie();
QMovie(QDataSource*, int bufsize=1024);
QMovie(const QMovie &);
-
~QMovie();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQNamespace.h b/WebCore/kwq/KWQNamespace.h
index 7a5b06d..f41f3f9 100644
--- a/WebCore/kwq/KWQNamespace.h
+++ b/WebCore/kwq/KWQNamespace.h
@@ -26,6 +26,10 @@
#ifndef QNAMESPACE_H_
#define QNAMESPACE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QColor;
class QCursor;
@@ -116,8 +120,15 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
Qt() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~Qt() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -126,9 +137,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Qt(const Qt &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Qt &operator=(const Qt &);
+#endif
}; // class Qt =================================================================
diff --git a/WebCore/kwq/KWQObject.h b/WebCore/kwq/KWQObject.h
index 993535a..a791d2e 100644
--- a/WebCore/kwq/KWQObject.h
+++ b/WebCore/kwq/KWQObject.h
@@ -26,6 +26,10 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include "qnamespace.h"
@@ -83,7 +87,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QObject(QObject *parent=0, const char *name=0);
-
virtual ~QObject();
// member functions --------------------------------------------------------
@@ -111,6 +114,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QObject(const QObject &);
QObject &operator=(const QObject &);
diff --git a/WebCore/kwq/KWQPaintDevice.h b/WebCore/kwq/KWQPaintDevice.h
index 327cb1d..a3ef57c 100644
--- a/WebCore/kwq/KWQPaintDevice.h
+++ b/WebCore/kwq/KWQPaintDevice.h
@@ -26,6 +26,10 @@
#ifndef QPAINTDEVICE_H_
#define QPAINTDEVICE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QPaintDevice ==========================================================
class QPaintDevice {
@@ -36,7 +40,16 @@ public:
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
+
// constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPaintDevice() {}
+#endif
+
+ virtual ~QPaintDevice();
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -45,6 +58,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPaintDevice(const QPaintDevice &);
QPaintDevice &operator=(const QPaintDevice &);
diff --git a/WebCore/kwq/KWQPaintDeviceMetrics.h b/WebCore/kwq/KWQPaintDeviceMetrics.h
index f9161d5..7701d2a 100644
--- a/WebCore/kwq/KWQPaintDeviceMetrics.h
+++ b/WebCore/kwq/KWQPaintDeviceMetrics.h
@@ -26,6 +26,10 @@
#ifndef QPAINTDEVICEMETRICS_H_
#define QPAINTDEVICEMETRICS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QPaintDevice;
// class QPaintDeviceMetrics ===================================================
@@ -40,8 +44,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+#endif
+
QPaintDeviceMetrics(const QPaintDevice *);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QPaintDeviceMetrics() {}
+#endif
+
// member functions --------------------------------------------------------
int logicalDpiY() const;
@@ -53,9 +66,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QPaintDeviceMetrics(const QPaintDeviceMetrics &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QPaintDeviceMetrics &operator=(const QPaintDeviceMetrics &);
+#endif
}; // class QPaintDeviceMetrics ================================================
diff --git a/WebCore/kwq/KWQPainter.h b/WebCore/kwq/KWQPainter.h
index 6ef1049..2f9745c 100644
--- a/WebCore/kwq/KWQPainter.h
+++ b/WebCore/kwq/KWQPainter.h
@@ -26,6 +26,10 @@
#ifndef QPAINTER_H_
#define QPAINTER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qpaintdevice.h"
#include "qcolor.h"
@@ -53,7 +57,10 @@ public:
QWMatrix();
- ~QWMatrix();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QWMatrix() {}
+#endif
// member functions --------------------------------------------------------
@@ -64,6 +71,20 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QWMatrix(const QWMatrix &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QWMatrix &operator=(const QWMatrix &);
+#endif
+
}; // class QWMatrix ===========================================================
@@ -81,7 +102,6 @@ public:
QPainter();
QPainter(const QPaintDevice *);
-
~QPainter();
// member functions --------------------------------------------------------
@@ -132,6 +152,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPainter(const QPainter &);
QPainter &operator=(const QPainter &);
diff --git a/WebCore/kwq/KWQPalette.h b/WebCore/kwq/KWQPalette.h
index b0464ad..e14a5af 100644
--- a/WebCore/kwq/KWQPalette.h
+++ b/WebCore/kwq/KWQPalette.h
@@ -26,6 +26,10 @@
#ifndef QPALETTE_H_
#define QPALETTE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QColor;
// class QColorGroup ===========================================================
@@ -56,7 +60,6 @@ public:
QColorGroup();
QColorGroup(const QColorGroup &);
-
~QColorGroup();
// member functions --------------------------------------------------------
@@ -103,7 +106,6 @@ public:
QPalette();
QPalette(const QPalette &);
-
~QPalette();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQPen.h b/WebCore/kwq/KWQPen.h
index fe659bd..9547532 100644
--- a/WebCore/kwq/KWQPen.h
+++ b/WebCore/kwq/KWQPen.h
@@ -26,6 +26,10 @@
#ifndef QPEN_H_
#define QPEN_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qcolor.h"
@@ -44,7 +48,6 @@ public:
QPen();
QPen(const QColor &color, uint width=0, PenStyle style=SolidLine);
QPen(const QPen &);
-
~QPen();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQPixmap.h b/WebCore/kwq/KWQPixmap.h
index 0edfdac..0519a7a 100644
--- a/WebCore/kwq/KWQPixmap.h
+++ b/WebCore/kwq/KWQPixmap.h
@@ -26,6 +26,10 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpaintdevice.h"
#include "qcolor.h"
#include "qstring.h"
@@ -54,7 +58,6 @@ public:
QPixmap(const QByteArray&);
QPixmap(int,int);
QPixmap(const QPixmap &);
-
~QPixmap();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQPointArray.h b/WebCore/kwq/KWQPointArray.h
index db7cd4d..a4f04c0 100644
--- a/WebCore/kwq/KWQPointArray.h
+++ b/WebCore/kwq/KWQPointArray.h
@@ -26,8 +26,14 @@
#ifndef QPOINT_H_
#define QPOINT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
+#include "qarray.h"
+
// class QPoint ================================================================
class QPoint {
@@ -44,7 +50,10 @@ public:
QPoint(int, int);
QPoint(const QPoint &);
- ~QPoint();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QPoint() {}
+#endif
// member functions --------------------------------------------------------
@@ -68,7 +77,7 @@ public:
// class QPointArray ===========================================================
-class QPointArray {
+class QPointArray : public QArray<QPoint> {
public:
// typedefs ----------------------------------------------------------------
@@ -78,8 +87,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QPointArray(int);
+ QPointArray(const QPointArray &);
QPointArray(int, const QCOORD *);
-
~QPointArray();
// member functions --------------------------------------------------------
@@ -89,14 +98,11 @@ public:
// operators ---------------------------------------------------------------
+ QPointArray &operator=(const QPointArray &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QPointArray(const QPointArray &);
- QPointArray &operator=(const QPointArray &);
-
}; // class QPointArray ========================================================
#endif
diff --git a/WebCore/kwq/KWQPtrDict.h b/WebCore/kwq/KWQPtrDict.h
index 4865c39..7f139ab 100644
--- a/WebCore/kwq/KWQPtrDict.h
+++ b/WebCore/kwq/KWQPtrDict.h
@@ -26,6 +26,10 @@
#ifndef QPTRDICT_H_
#define QPTRDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -43,7 +47,6 @@ public:
QPtrDict(int size=17);
QPtrDict(const QPtrDict<T> &);
-
~QPtrDict();
// member functions --------------------------------------------------------
@@ -79,9 +82,13 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QPtrDictIterator(const QPtrDict<T> &);
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPtrDictIterator() {}
+#endif
- ~QPtrDictIterator();
+ QPtrDictIterator(const QPtrDict<T> &);
+ ~QPtrDictIterator() {}
// member functions --------------------------------------------------------
@@ -96,9 +103,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QPtrDictIterator(const QPtrDictIterator &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QPtrDictIterator &operator=(const QPtrDictIterator &);
+#endif
}; // class QPtrDictIterator ===================================================
diff --git a/WebCore/kwq/KWQPtrList.h b/WebCore/kwq/KWQPtrList.h
index 81d5354..5c8ae91 100644
--- a/WebCore/kwq/KWQPtrList.h
+++ b/WebCore/kwq/KWQPtrList.h
@@ -26,6 +26,10 @@
#ifndef QLIST_H_
#define QLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -42,8 +46,7 @@ public:
QList();
QList(const QList<T> &);
-
- virtual ~QList();
+ ~QList();
// member functions --------------------------------------------------------
@@ -98,8 +101,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QListIterator(const QList<T> &);
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QListIterator() {}
+#endif
+ QListIterator(const QList<T> &);
~QListIterator();
// member functions --------------------------------------------------------
@@ -120,8 +127,12 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QListIterator<T>(const QListIterator<T> &);
+#endif
}; // class QListIterator ======================================================
diff --git a/WebCore/kwq/KWQPtrStack.h b/WebCore/kwq/KWQPtrStack.h
index 3570460..9ee3143 100644
--- a/WebCore/kwq/KWQPtrStack.h
+++ b/WebCore/kwq/KWQPtrStack.h
@@ -26,6 +26,10 @@
#ifndef QSTACK_H_
#define QSTACK_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QStack ================================================================
template<class T> class QStack {
@@ -39,7 +43,6 @@ public:
QStack();
QStack(const QStack<T> &);
-
~QStack();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQPtrVector.h b/WebCore/kwq/KWQPtrVector.h
index 2d4fec3..aabfb11 100644
--- a/WebCore/kwq/KWQPtrVector.h
+++ b/WebCore/kwq/KWQPtrVector.h
@@ -26,6 +26,10 @@
#ifndef QVECTOR_H_
#define QVECTOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -47,20 +51,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
QGVector();
-
- virtual ~QGVector();
+ QGVector(const QGVector &);
+ ~QGVector();
// member functions --------------------------------------------------------
+
// operators ---------------------------------------------------------------
+ QGVector &operator=(const QGVector &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QGVector(const QGVector &);
- QGVector &operator=(const QGVector &);
-
}; // class QGVector ===========================================================
@@ -79,7 +81,6 @@ public:
QVector();
QVector(uint);
QVector(const QVector &);
-
~QVector();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQPushButton.h b/WebCore/kwq/KWQPushButton.h
index c81de3b..df3bc77 100644
--- a/WebCore/kwq/KWQPushButton.h
+++ b/WebCore/kwq/KWQPushButton.h
@@ -26,6 +26,10 @@
#ifndef QPUSHBUTTON_H_
#define QPUSHBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
#include "qwidget.h"
@@ -43,10 +47,13 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QPushButton();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPushButton() {}
+#endif
+
QPushButton(QWidget *);
QPushButton(const QString &text, QWidget *parent, const char* name=0);
-
~QPushButton();
// member functions --------------------------------------------------------
@@ -57,6 +64,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPushButton(const QPushButton &);
QPushButton &operator=(const QPushButton &);
diff --git a/WebCore/kwq/KWQRadioButton.h b/WebCore/kwq/KWQRadioButton.h
index f5b269c..30bb290 100644
--- a/WebCore/kwq/KWQRadioButton.h
+++ b/WebCore/kwq/KWQRadioButton.h
@@ -26,6 +26,10 @@
#ifndef QRADIOBUTTON_H_
#define QRADIOBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
#include "qwidget.h"
@@ -42,10 +46,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QRadioButton();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QRadioButton() {}
+#endif
+
QRadioButton(QWidget *);
- ~QRadioButton();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QRadioButton() {}
+#endif
// member functions --------------------------------------------------------
@@ -58,6 +69,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QRadioButton(const QRadioButton &);
QRadioButton &operator=(const QRadioButton &);
diff --git a/WebCore/kwq/KWQRect.h b/WebCore/kwq/KWQRect.h
index 6cdc4df..27f1cc5 100644
--- a/WebCore/kwq/KWQRect.h
+++ b/WebCore/kwq/KWQRect.h
@@ -26,6 +26,10 @@
#ifndef QRECT_H_
#define QRECT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qsize.h"
// class QRect =================================================================
@@ -44,7 +48,10 @@ public:
QRect(int l, int t, int w, int h);
QRect(const QRect &);
- ~QRect();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QRect() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQRegExp.h b/WebCore/kwq/KWQRegExp.h
index c92c663..f092dbe 100644
--- a/WebCore/kwq/KWQRegExp.h
+++ b/WebCore/kwq/KWQRegExp.h
@@ -26,6 +26,10 @@
#ifndef QREGEXP_H_
#define QREGEXP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QRegExp ===============================================================
@@ -43,7 +47,6 @@ public:
QRegExp();
QRegExp(const QString &);
QRegExp(const QRegExp &);
-
~QRegExp();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQRegion.h b/WebCore/kwq/KWQRegion.h
index b087686..f064442 100644
--- a/WebCore/kwq/KWQRegion.h
+++ b/WebCore/kwq/KWQRegion.h
@@ -26,6 +26,10 @@
#ifndef QREGION_H_
#define QREGION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpoint.h"
#include "qimage.h"
#include "qrect.h"
@@ -51,7 +55,6 @@ public:
QRegion(int, int, int, int, RegionType = Rectangle);
QRegion(const QPointArray &);
QRegion(const QRegion &);
-
~QRegion();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQScrollBar.h b/WebCore/kwq/KWQScrollBar.h
index e3c8c92..d3be8e0 100644
--- a/WebCore/kwq/KWQScrollBar.h
+++ b/WebCore/kwq/KWQScrollBar.h
@@ -26,6 +26,10 @@
#ifndef KWQSCROLLVIEW_H_
#define KWQSCROLLVIEW_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
#include <qpalette.h>
@@ -42,9 +46,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QScrollBar();
+ QScrollBar(QWidget *);
- ~QScrollBar();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QScrollBar() {}
+#endif
// member functions --------------------------------------------------------
@@ -56,7 +63,7 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QScrollBar(const QScrollBar &);
QScrollBar &operator=(const QScrollBar &);
diff --git a/WebCore/kwq/KWQScrollView.h b/WebCore/kwq/KWQScrollView.h
index fbfb585..41ffdf2 100644
--- a/WebCore/kwq/KWQScrollView.h
+++ b/WebCore/kwq/KWQScrollView.h
@@ -26,6 +26,10 @@
#ifndef QSCROLLVIEW_H_
#define QSCROLLVIEW_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQScrollBar.h>
#include <KWQFrame.h>
#include "qwidget.h"
@@ -48,8 +52,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QScrollView();
-
- virtual ~QScrollView();
+ ~QScrollView();
// member functions --------------------------------------------------------
@@ -83,6 +86,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QScrollView(const QScrollView &);
QScrollView &operator=(const QScrollView &);
diff --git a/WebCore/kwq/KWQSize.h b/WebCore/kwq/KWQSize.h
index 195708a..b78b584 100644
--- a/WebCore/kwq/KWQSize.h
+++ b/WebCore/kwq/KWQSize.h
@@ -26,6 +26,10 @@
#ifndef QSIZE_H_
#define QSIZE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QSize =================================================================
class QSize {
@@ -42,7 +46,10 @@ public:
QSize(int,int);
QSize(const QSize &);
- ~QSize();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QSize() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQSortedList.h b/WebCore/kwq/KWQSortedList.h
index caa9d38..cfb570c 100644
--- a/WebCore/kwq/KWQSortedList.h
+++ b/WebCore/kwq/KWQSortedList.h
@@ -26,6 +26,10 @@
#ifndef QSORTEDLIST_H_
#define QSORTEDLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qlist.h"
// class QSortedList ===========================================================
@@ -42,7 +46,6 @@ public:
QSortedList();
QSortedList(const QSortedList<T> &);
-
~QSortedList();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQStrList.h b/WebCore/kwq/KWQStrList.h
index 436f45d..69c5eb5 100644
--- a/WebCore/kwq/KWQStrList.h
+++ b/WebCore/kwq/KWQStrList.h
@@ -26,6 +26,10 @@
#ifndef KWQSTRLIST_H_
#define KWQSTRLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <qlist.h>
@@ -43,20 +47,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
QStrList();
-
+ QStrList(const QStrList &);
~QStrList();
// member functions --------------------------------------------------------
+
// operators ---------------------------------------------------------------
+ QStrList &operator=(const QStrList &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QStrList(const QStrList &);
- QStrList &operator=(const QStrList &);
-
}; // class QStrList ===========================================================
#endif
diff --git a/WebCore/kwq/KWQString.h b/WebCore/kwq/KWQString.h
index 71366c6..8edeca7 100644
--- a/WebCore/kwq/KWQString.h
+++ b/WebCore/kwq/KWQString.h
@@ -26,6 +26,10 @@
#ifndef QSTRING_H_
#define QSTRING_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#define Fixed MacFixed
#define Rect MacRect
#define Boolean MacBoolean
@@ -267,8 +271,12 @@ public:
// private ---------------------------------------------------------------------
private:
- // no assignment
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QConstString &operator=(const QConstString &);
+#endif
}; // class QConstString =======================================================
diff --git a/WebCore/kwq/KWQStringList.h b/WebCore/kwq/KWQStringList.h
index a697574..35207db 100644
--- a/WebCore/kwq/KWQStringList.h
+++ b/WebCore/kwq/KWQStringList.h
@@ -26,6 +26,10 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qvaluelist.h"
diff --git a/WebCore/kwq/KWQTextCodec.h b/WebCore/kwq/KWQTextCodec.h
index 8689bb8..29d5356 100644
--- a/WebCore/kwq/KWQTextCodec.h
+++ b/WebCore/kwq/KWQTextCodec.h
@@ -26,6 +26,10 @@
#ifndef QTEXTCODEC_H_
#define QTEXTCODEC_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qcstring.h"
@@ -41,8 +45,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QTextDecoder();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTextDecoder() {}
+#endif
+
virtual ~QTextDecoder();
// member functions --------------------------------------------------------
@@ -55,9 +62,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextDecoder(const QTextDecoder &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextDecoder &operator=(const QTextDecoder &);
+#endif
}; // class QTextDecoder =======================================================
@@ -79,8 +95,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QTextCodec();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTextCodec() {}
+#endif
+
virtual ~QTextCodec();
// member functions --------------------------------------------------------
@@ -100,9 +119,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextCodec(const QTextCodec &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextCodec &operator=(const QTextCodec &);
+#endif
}; // class QTextCodec =========================================================
diff --git a/WebCore/kwq/KWQTextStream.h b/WebCore/kwq/KWQTextStream.h
index 7024dcf..e600247 100644
--- a/WebCore/kwq/KWQTextStream.h
+++ b/WebCore/kwq/KWQTextStream.h
@@ -26,6 +26,10 @@
#ifndef QTEXTSTREAM_H_
#define QTEXTSTREAM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QTextStream ===========================================================
@@ -42,7 +46,6 @@ public:
QTextStream();
QTextStream(QByteArray, int);
-
virtual ~QTextStream();
// member functions --------------------------------------------------------
@@ -58,6 +61,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QTextStream(const QTextStream &);
QTextStream &operator=(const QTextStream &);
@@ -78,7 +82,11 @@ public:
QTextIStream(QString *);
- virtual ~QTextIStream();
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTextIStream() {}
+#endif
// member functions --------------------------------------------------------
@@ -90,9 +98,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextIStream(const QTextIStream &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextIStream &operator=(const QTextIStream &);
+#endif
}; // class QTextIStream =======================================================
@@ -112,7 +129,10 @@ public:
QTextOStream(QString *);
QTextOStream(QByteArray);
- virtual ~QTextOStream();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTextOStream() {}
+#endif
// member functions --------------------------------------------------------
@@ -124,9 +144,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextOStream(const QTextOStream &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextOStream &operator=(const QTextOStream &);
+#endif
}; // class QTextOStream =======================================================
diff --git a/WebCore/kwq/KWQTimer.h b/WebCore/kwq/KWQTimer.h
index 52e0b25..3a1050d 100644
--- a/WebCore/kwq/KWQTimer.h
+++ b/WebCore/kwq/KWQTimer.h
@@ -26,6 +26,10 @@
#ifndef QTIMER_H_
#define QTIMER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
// class QTimer ================================================================
@@ -44,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QTimer();
-
~QTimer();
// member functions --------------------------------------------------------
@@ -55,6 +58,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QTimer(const QTimer &);
QTimer &operator=(const QTimer &);
diff --git a/WebCore/kwq/KWQToolTip.h b/WebCore/kwq/KWQToolTip.h
index 5ee206f..e6c745f 100644
--- a/WebCore/kwq/KWQToolTip.h
+++ b/WebCore/kwq/KWQToolTip.h
@@ -26,6 +26,10 @@
#ifndef QTOOLTIP_H_
#define QTOOLTIP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qpalette.h"
#include "qwidget.h"
@@ -47,7 +51,10 @@ public:
QToolTip(QWidget *);
- ~QToolTip();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QToolTip() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -56,9 +63,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QToolTip(const QToolTip &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QToolTip &operator=(const QToolTip &);
+#endif
}; // class QToolTip ===========================================================
diff --git a/WebCore/kwq/KWQValueList.h b/WebCore/kwq/KWQValueList.h
index da8a1d4..069f71a 100644
--- a/WebCore/kwq/KWQValueList.h
+++ b/WebCore/kwq/KWQValueList.h
@@ -26,6 +26,10 @@
#ifndef QVALUELIST_H_
#define QVALUELIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QValueListIterator ====================================================
diff --git a/WebCore/kwq/KWQVariant.h b/WebCore/kwq/KWQVariant.h
index 279fb8b..54b0cbc 100644
--- a/WebCore/kwq/KWQVariant.h
+++ b/WebCore/kwq/KWQVariant.h
@@ -26,6 +26,10 @@
#ifndef QVARIANT_H_
#define QVARIANT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
typedef unsigned int uint;
class QString;
@@ -53,7 +57,6 @@ public:
QVariant(double);
QVariant(const QString &);
QVariant(const QVariant &);
-
~QVariant();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/KWQWidget.h b/WebCore/kwq/KWQWidget.h
index f0c2191..fc6db30 100644
--- a/WebCore/kwq/KWQWidget.h
+++ b/WebCore/kwq/KWQWidget.h
@@ -26,6 +26,10 @@
#ifndef QWIDGET_H_
#define QWIDGET_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
#include "qpaintdevice.h"
#include "qpainter.h"
@@ -59,8 +63,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QWidget(QWidget *parent=0, const char *name=0, WFlags f=0);
-
- virtual ~QWidget();
+ ~QWidget();
// member functions --------------------------------------------------------
@@ -120,6 +123,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QWidget(const QWidget &);
QWidget &operator=(const QWidget &);
diff --git a/WebCore/kwq/KWQXml.h b/WebCore/kwq/KWQXml.h
index 5935eb0..07d1065 100644
--- a/WebCore/kwq/KWQXml.h
+++ b/WebCore/kwq/KWQXml.h
@@ -26,6 +26,10 @@
#ifndef QXML_H_
#define QXML_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class QXmlAttributes ========================================================
@@ -42,7 +46,6 @@ public:
QXmlAttributes();
QXmlAttributes(const QXmlAttributes &);
-
virtual ~QXmlAttributes();
// member functions --------------------------------------------------------
@@ -75,7 +78,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QXmlInputSource();
-
virtual ~QXmlInputSource();
// member functions --------------------------------------------------------
@@ -88,30 +90,295 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlInputSource(const QXmlInputSource &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlInputSource &operator=(const QXmlInputSource &);
+#endif
-}; // class QXmlInputSource =====================================================
+}; // class QXmlInputSource ====================================================
-class QXmlDTDHandler {};
+// class QXmlDTDHandler ========================================================
-class QXmlDeclHandler {};
+class QXmlDTDHandler {
+public:
-class QXmlErrorHandler {};
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
-class QXmlLexicalHandler {};
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlDTDHandler() {}
+#endif
-class QXmlContentHandler {};
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler(const QXmlDTDHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler &operator=(const QXmlDTDHandler &);
+#endif
+
+}; // class QXmlDTDHandler =====================================================
+
+
+// class QXmlDeclHandler ========================================================
+
+class QXmlDeclHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlDeclHandler() {}
+#endif
-class QXmlDefaultHandler :
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler(const QXmlDeclHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler &operator=(const QXmlDeclHandler &);
+#endif
+
+}; // class QXmlDeclHandler =====================================================
+
+
+// class QXmlErrorHandler ========================================================
+
+class QXmlErrorHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlErrorHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler(const QXmlErrorHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler &operator=(const QXmlErrorHandler &);
+#endif
+
+}; // class QXmlErrorHandler =====================================================
+
+
+// class QXmlLexicalHandler ========================================================
+
+class QXmlLexicalHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlLexicalHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler(const QXmlLexicalHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler &operator=(const QXmlLexicalHandler &);
+#endif
+
+}; // class QXmlLexicalHandler =====================================================
+
+
+// class QXmlContentHandler ========================================================
+
+class QXmlContentHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlContentHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler(const QXmlContentHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler &operator=(const QXmlContentHandler &);
+#endif
+
+}; // class QXmlContentHandler =====================================================
+
+
+// class QXmlDefaultHandler ====================================================
+
+class QXmlDefaultHandler :
public QXmlContentHandler,
public QXmlLexicalHandler,
public QXmlErrorHandler,
public QXmlDeclHandler,
public QXmlDTDHandler {
-};
+
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+ QXmlDefaultHandler() {}
+ virtual ~QXmlDefaultHandler();
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDefaultHandler(const QXmlDefaultHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDefaultHandler &operator=(const QXmlDefaultHandler &);
+#endif
+
+}; // class QXmlDefaultHandler =====================================================
// class QXmlSimpleReader ======================================================
@@ -126,8 +393,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QXmlSimpleReader();
-
- ~QXmlSimpleReader();
+ virtual ~QXmlSimpleReader();
// member functions --------------------------------------------------------
@@ -144,9 +410,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlSimpleReader(const QXmlSimpleReader &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlSimpleReader &operator=(const QXmlSimpleReader &);
+#endif
}; // class QXmlSimpleReader ===================================================
@@ -165,7 +440,10 @@ public:
QXmlParseException();
- ~QXmlParseException();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlParseException() {}
+#endif
// member functions --------------------------------------------------------
@@ -179,9 +457,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlParseException(const QXmlParseException &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlParseException &operator=(const QXmlParseException &);
+#endif
}; // class QXmlParseException =================================================
diff --git a/WebCore/kwq/dcop/dcopclient.h b/WebCore/kwq/dcop/dcopclient.h
index 8e0d76d..6169beb 100644
--- a/WebCore/kwq/dcop/dcopclient.h
+++ b/WebCore/kwq/dcop/dcopclient.h
@@ -26,6 +26,10 @@
#ifndef DCOPCLIENT_H_
#define DCOPCLIENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qcstring.h>
diff --git a/WebCore/kwq/kdecore/kapp.h b/WebCore/kwq/kdecore/kapp.h
index dca9736..743108c 100644
--- a/WebCore/kwq/kdecore/kapp.h
+++ b/WebCore/kwq/kdecore/kapp.h
@@ -26,6 +26,10 @@
#ifndef KAPP_H_
#define KAPP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kglobal.h>
#include <kglobalsettings.h>
#include <dcopclient.h>
diff --git a/WebCore/kwq/kdecore/kcharsets.h b/WebCore/kwq/kdecore/kcharsets.h
index a489c07..d7e6770 100644
--- a/WebCore/kwq/kdecore/kcharsets.h
+++ b/WebCore/kwq/kdecore/kcharsets.h
@@ -26,6 +26,10 @@
#ifndef KCHARSETS_H_
#define KCHARSETS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qfont.h>
class QString;
diff --git a/WebCore/kwq/kdecore/kcmdlineargs.h b/WebCore/kwq/kdecore/kcmdlineargs.h
index 46ab319..1fc1f1d 100644
--- a/WebCore/kwq/kdecore/kcmdlineargs.h
+++ b/WebCore/kwq/kdecore/kcmdlineargs.h
@@ -26,4 +26,8 @@
#ifndef KCMDLINEARGS_H_
#define KCMDLINEARGS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/kwq/kdecore/kconfig.h b/WebCore/kwq/kdecore/kconfig.h
index 6363563..939ee71 100644
--- a/WebCore/kwq/kdecore/kconfig.h
+++ b/WebCore/kwq/kdecore/kconfig.h
@@ -26,6 +26,10 @@
#ifndef KCONFIG_H_
#define KCONFIG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qcolor.h>
#include <qfont.h>
diff --git a/WebCore/kwq/kdecore/kdebug.h b/WebCore/kwq/kdecore/kdebug.h
index 139ae65..b1e31f4 100644
--- a/WebCore/kwq/kdecore/kdebug.h
+++ b/WebCore/kwq/kdecore/kdebug.h
@@ -26,6 +26,10 @@
#ifndef KDEBUG_H_
#define KDEBUG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
class kdbgstream;
diff --git a/WebCore/kwq/kdecore/kglobal.h b/WebCore/kwq/kdecore/kglobal.h
index a56df0a..4742402 100644
--- a/WebCore/kwq/kdecore/kglobal.h
+++ b/WebCore/kwq/kdecore/kglobal.h
@@ -26,6 +26,10 @@
#ifndef KGLOBAL_H_
#define KGLOBAL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <kinstance.h>
@@ -59,14 +63,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
- KGlobal();
+ KGlobal() {}
#endif
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
- ~KGlobal();
+ ~KGlobal() {}
#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/kdecore/kglobalsettings.h b/WebCore/kwq/kdecore/kglobalsettings.h
index f28e2a2..8478383 100644
--- a/WebCore/kwq/kdecore/kglobalsettings.h
+++ b/WebCore/kwq/kdecore/kglobalsettings.h
@@ -26,6 +26,10 @@
#ifndef KGLOBALSETTINGS_H_
#define KGLOBALSETTINGS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QFont;
// class KGlobalSettings =======================================================
@@ -48,7 +52,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KGlobalSettings() {}
#endif
diff --git a/WebCore/kwq/kdecore/kiconloader.h b/WebCore/kwq/kdecore/kiconloader.h
index 9ca3b40..48096e6 100644
--- a/WebCore/kwq/kdecore/kiconloader.h
+++ b/WebCore/kwq/kdecore/kiconloader.h
@@ -26,6 +26,10 @@
#ifndef KICONLOADER_H_
#define KICONLOADER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpixmap.h>
#include <qstring.h>
#include <kinstance.h>
diff --git a/WebCore/kwq/kdecore/kinstance.h b/WebCore/kwq/kdecore/kinstance.h
index bf9ce7b..abffcfd 100644
--- a/WebCore/kwq/kdecore/kinstance.h
+++ b/WebCore/kwq/kdecore/kinstance.h
@@ -26,6 +26,10 @@
#ifndef KINSTANCE_H_
#define KINSTANCE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qcstring.h>
class KIconLoader;
diff --git a/WebCore/kwq/kdecore/klocale.h b/WebCore/kwq/kdecore/klocale.h
index fa5efd5..2117843 100644
--- a/WebCore/kwq/kdecore/klocale.h
+++ b/WebCore/kwq/kdecore/klocale.h
@@ -26,6 +26,10 @@
#ifndef KLOCALE_H_
#define KLOCALE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
QString i18n(const char* text);
diff --git a/WebCore/kwq/kdecore/kprocess.h b/WebCore/kwq/kdecore/kprocess.h
index 55f6326..a4146db 100644
--- a/WebCore/kwq/kdecore/kprocess.h
+++ b/WebCore/kwq/kdecore/kprocess.h
@@ -26,6 +26,10 @@
#ifndef KPROCESS_H_
#define KPROCESS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <signal.h>
#include <qobject.h>
diff --git a/WebCore/kwq/kdecore/ksimpleconfig.h b/WebCore/kwq/kdecore/ksimpleconfig.h
index 5a940d7..a6bc792 100644
--- a/WebCore/kwq/kdecore/ksimpleconfig.h
+++ b/WebCore/kwq/kdecore/ksimpleconfig.h
@@ -26,4 +26,8 @@
#ifndef KSIMPLECONFIG_H_
#define KSIMPLECONFIG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/kwq/kdecore/kstaticdeleter.h b/WebCore/kwq/kdecore/kstaticdeleter.h
index 187f6ab..0997cfb 100644
--- a/WebCore/kwq/kdecore/kstaticdeleter.h
+++ b/WebCore/kwq/kdecore/kstaticdeleter.h
@@ -26,6 +26,10 @@
#ifndef KSTATICDELETER_H_
#define KSTATICDELETER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class KStaticDeleter ========================================================
template <class T> class KStaticDeleter {
diff --git a/WebCore/kwq/kdecore/kstddirs.h b/WebCore/kwq/kdecore/kstddirs.h
index ec0d9fa..daa6787 100644
--- a/WebCore/kwq/kdecore/kstddirs.h
+++ b/WebCore/kwq/kdecore/kstddirs.h
@@ -26,6 +26,10 @@
#ifndef KSTDDIRS_H_
#define KSTDDIRS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include "kglobal.h"
diff --git a/WebCore/kwq/kdecore/kstringhandler.h b/WebCore/kwq/kdecore/kstringhandler.h
index 95caba6..0f0ce7e 100644
--- a/WebCore/kwq/kdecore/kstringhandler.h
+++ b/WebCore/kwq/kdecore/kstringhandler.h
@@ -26,6 +26,10 @@
#ifndef KSTRINGHANDLER_H_
#define KSTRINGHANDLER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
// class KStringHandler ========================================================
@@ -44,7 +48,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KStringHandler() {}
#endif
diff --git a/WebCore/kwq/kdecore/kurl.h b/WebCore/kwq/kdecore/kurl.h
index 34950dc..8a5533d 100644
--- a/WebCore/kwq/kdecore/kurl.h
+++ b/WebCore/kwq/kdecore/kurl.h
@@ -26,6 +26,10 @@
#ifndef KURL_H_
#define KURL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class KURL ==================================================================
diff --git a/WebCore/kwq/kdecore/kwin.h b/WebCore/kwq/kdecore/kwin.h
index 072b29f..44f7640 100644
--- a/WebCore/kwq/kdecore/kwin.h
+++ b/WebCore/kwq/kdecore/kwin.h
@@ -26,6 +26,10 @@
#ifndef KWIN_H_
#define KWIN_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qrect.h>
#include <qstring.h>
@@ -53,7 +57,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KWin() {}
#endif
diff --git a/WebCore/kwq/kdecore/kwinmodule.h b/WebCore/kwq/kdecore/kwinmodule.h
index 341752f..12922d6 100644
--- a/WebCore/kwq/kdecore/kwinmodule.h
+++ b/WebCore/kwq/kdecore/kwinmodule.h
@@ -26,6 +26,10 @@
#ifndef KWINMODULE_H_
#define KWINMODULE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
class QRect;
diff --git a/WebCore/kwq/kdeui/kaction.h b/WebCore/kwq/kdeui/kaction.h
index 1e06c54..81e31c5 100644
--- a/WebCore/kwq/kdeui/kaction.h
+++ b/WebCore/kwq/kdeui/kaction.h
@@ -26,6 +26,10 @@
#ifndef KACTION_H_
#define KACTION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpopupmenu.h>
// class KAction ===============================================================
diff --git a/WebCore/kwq/kdeui/kcombobox.h b/WebCore/kwq/kdeui/kcombobox.h
index e13018f..406b058 100644
--- a/WebCore/kwq/kdeui/kcombobox.h
+++ b/WebCore/kwq/kdeui/kcombobox.h
@@ -26,13 +26,17 @@
#ifndef KCOMBOBOX_H_
#define KCOMBOBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qcombobox.h>
#include <KWQCompletion.h>
// class KComboBox =============================================================
-class KComboBox : public QComboBox, public QCompletionBase {
+class KComboBox : public QComboBox, public KCompletionBase {
public:
// structs -----------------------------------------------------------------
diff --git a/WebCore/kwq/kdeui/kcompletionbox.h b/WebCore/kwq/kdeui/kcompletionbox.h
index 0d29237..c95a18c 100644
--- a/WebCore/kwq/kdeui/kcompletionbox.h
+++ b/WebCore/kwq/kdeui/kcompletionbox.h
@@ -26,6 +26,10 @@
#ifndef KCOMPLETIONBOX_H_
#define KCOMPLETIONBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "klistbox.h"
// class KCompletionBox ========================================================
diff --git a/WebCore/kwq/kdeui/kcursor.h b/WebCore/kwq/kdeui/kcursor.h
index 19acee2..5edeae3 100644
--- a/WebCore/kwq/kdeui/kcursor.h
+++ b/WebCore/kwq/kdeui/kcursor.h
@@ -26,6 +26,10 @@
#ifndef KCURSOR_H_
#define KCURSOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
// class KCursor ===============================================================
diff --git a/WebCore/kwq/kdeui/keditcl.h b/WebCore/kwq/kdeui/keditcl.h
index 9022359..9b21ea0 100644
--- a/WebCore/kwq/kdeui/keditcl.h
+++ b/WebCore/kwq/kdeui/keditcl.h
@@ -26,6 +26,10 @@
#ifndef KEDITCL_H_
#define KEDITCL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
#include <KWQFrame.h>
#include <KWQScrollBar.h>
diff --git a/WebCore/kwq/kdeui/klineedit.h b/WebCore/kwq/kdeui/klineedit.h
index 320c1c4..bf92cb7 100644
--- a/WebCore/kwq/kdeui/klineedit.h
+++ b/WebCore/kwq/kdeui/klineedit.h
@@ -26,6 +26,10 @@
#ifndef KLINEEDIT_H_
#define KLINEEDIT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qlineedit.h>
#include <KWQCompletion.h>
@@ -34,7 +38,7 @@
// class __class_name__ ========================================================
-class KLineEdit : public QLineEdit, public QCompletionBase {
+class KLineEdit : public QLineEdit, public KCompletionBase {
public:
// structs -----------------------------------------------------------------
diff --git a/WebCore/kwq/kdeui/klistbox.h b/WebCore/kwq/kdeui/klistbox.h
index af27e08..07c8b4b 100644
--- a/WebCore/kwq/kdeui/klistbox.h
+++ b/WebCore/kwq/kdeui/klistbox.h
@@ -26,6 +26,10 @@
#ifndef KLISTBOX_H_
#define KLISTBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQListBox.h>
#include <qwidget.h>
diff --git a/WebCore/kwq/kdeui/kmessagebox.h b/WebCore/kwq/kdeui/kmessagebox.h
index 686167b..ca94485 100644
--- a/WebCore/kwq/kdeui/kmessagebox.h
+++ b/WebCore/kwq/kdeui/kmessagebox.h
@@ -26,6 +26,10 @@
#ifndef KMESSAGEBOX_H_
#define KMESSAGEBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
#include <qstring.h>
@@ -64,7 +68,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KMessageBox() {}
#endif
diff --git a/WebCore/kwq/kfile/kfiledialog.h b/WebCore/kwq/kfile/kfiledialog.h
index b0e1221..607c05e 100644
--- a/WebCore/kwq/kfile/kfiledialog.h
+++ b/WebCore/kwq/kfile/kfiledialog.h
@@ -26,6 +26,10 @@
#ifndef KFILEDIALOG_H_
#define KFILEDIALOG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <qwidget.h>
diff --git a/WebCore/kwq/kio/job.h b/WebCore/kwq/kio/job.h
index 4c04a54..8fbe161 100644
--- a/WebCore/kwq/kio/job.h
+++ b/WebCore/kwq/kio/job.h
@@ -26,6 +26,10 @@
#ifndef JOB_H_
#define JOB_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kurl.h>
#include "jobclasses.h"
diff --git a/WebCore/kwq/kio/jobclasses.h b/WebCore/kwq/kio/jobclasses.h
index 94dbf1c..e3dcd65 100644
--- a/WebCore/kwq/kio/jobclasses.h
+++ b/WebCore/kwq/kio/jobclasses.h
@@ -26,6 +26,10 @@
#ifndef JOBCLASSES_H_
#define JOBCLASSES_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qstring.h>
@@ -43,8 +47,11 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
- Job();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ Job() {}
+#endif
+
virtual ~Job();
// member functions --------------------------------------------------------
@@ -60,9 +67,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Job(const Job &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Job &operator=(const Job &);
+#endif
}; // class Job ================================================================
@@ -80,9 +96,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- SimpleJob();
-
- virtual ~SimpleJob();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ SimpleJob() {}
+#endif
+
+ ~SimpleJob();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -91,9 +110,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
SimpleJob(const SimpleJob &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
SimpleJob &operator=(const SimpleJob &);
+#endif
}; // class SimpleJob ==========================================================
@@ -111,9 +139,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- TransferJob();
-
- virtual ~TransferJob();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ TransferJob() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~TransferJob() {}
+#endif
// member functions --------------------------------------------------------
@@ -126,9 +160,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
TransferJob(const TransferJob &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
TransferJob &operator=(const TransferJob &);
+#endif
}; // class TransferJob ========================================================
diff --git a/WebCore/kwq/kio/kfileitem.h b/WebCore/kwq/kio/kfileitem.h
index e749c3e..25b38b1 100644
--- a/WebCore/kwq/kio/kfileitem.h
+++ b/WebCore/kwq/kio/kfileitem.h
@@ -26,6 +26,10 @@
#ifndef KFILEITEM_H_
#define KFILEITEM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <netaccess.h>
// class KFileItem =============================================================
@@ -44,6 +48,8 @@ public:
KFileItem(const KIO::UDSEntry &, const KURL &, bool foo=false,
bool bar=false);
+ virtual ~KFileItem();
+
// member functions --------------------------------------------------------
bool isDir() const;
@@ -54,9 +60,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KFileItem(const KFileItem &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KFileItem &operator=(const KFileItem &);
+#endif
}; // class KFileItem ==========================================================
diff --git a/WebCore/kwq/kio/kimageio.h b/WebCore/kwq/kio/kimageio.h
index d428a01..843ed56 100644
--- a/WebCore/kwq/kio/kimageio.h
+++ b/WebCore/kwq/kio/kimageio.h
@@ -26,6 +26,10 @@
#ifndef KIMAGEIO_H_
#define KIMAGEIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstringlist.h>
// class KImageIO ==============================================================
@@ -48,10 +52,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KImageIO();
-
- ~KImageIO();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KImageIO() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~KImageIO() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -59,9 +69,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KImageIO(const KImageIO &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KImageIO &operator=(const KImageIO &);
+#endif
}; // class KImageIO ===========================================================
diff --git a/WebCore/kwq/kio/kmimetype.h b/WebCore/kwq/kio/kmimetype.h
index 0b3f004..685cef1 100644
--- a/WebCore/kwq/kio/kmimetype.h
+++ b/WebCore/kwq/kio/kmimetype.h
@@ -26,6 +26,10 @@
#ifndef KMIMETYPE_H_
#define KMIMETYPE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kdecore/kglobal.h>
#include <kdecore/kurl.h>
@@ -46,10 +50,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
KSharedPtr();
-
KSharedPtr(const KSharedPtr &);
-
- virtual ~KSharedPtr();
+ ~KSharedPtr();
// member functions --------------------------------------------------------
@@ -84,9 +86,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KMimeType();
-
- ~KMimeType();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KMimeType() {}
+#endif
+
+ virtual ~KMimeType();
// member functions --------------------------------------------------------
@@ -98,9 +103,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KMimeType(const KMimeType &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KMimeType &operator=(const KMimeType &);
+#endif
}; // class KMimeType ==========================================================
diff --git a/WebCore/kwq/kio/kprotocolmanager.h b/WebCore/kwq/kio/kprotocolmanager.h
index e0f81b6..c9f5cdf 100644
--- a/WebCore/kwq/kio/kprotocolmanager.h
+++ b/WebCore/kwq/kio/kprotocolmanager.h
@@ -26,6 +26,10 @@
#ifndef KPROTOCOLMANAGER_H_
#define KPROTOCOLMANAGER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class KProtocolManager ======================================================
@@ -46,9 +50,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KProtocolManager();
-
- ~KProtocolManager();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KProtocolManager() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~KProtocolManager() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -57,9 +67,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KProtocolManager(const KProtocolManager &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KProtocolManager &operator=(const KProtocolManager &);
+#endif
}; // class KProtocolManager ===================================================
diff --git a/WebCore/kwq/kio/netaccess.h b/WebCore/kwq/kio/netaccess.h
index c663cad..425a65d 100644
--- a/WebCore/kwq/kio/netaccess.h
+++ b/WebCore/kwq/kio/netaccess.h
@@ -26,6 +26,10 @@
#ifndef NETACCESS_H_
#define NETACCESS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qvaluelist.h>
#include <kurl.h>
@@ -49,10 +53,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- UDSAtom();
-
- ~UDSAtom();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ UDSAtom() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~UDSAtom() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -60,9 +70,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
UDSAtom(const UDSAtom &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
UDSAtom &operator=(const UDSAtom &);
+#endif
}; // class UDSAtom ============================================================
@@ -86,10 +105,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- NetAccess();
-
- ~NetAccess();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ NetAccess() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~NetAccess() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -97,9 +122,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
NetAccess(const NetAccess &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
NetAccess &operator=(const NetAccess &);
+#endif
}; // class NetAccess ==========================================================
diff --git a/WebCore/kwq/kio/scheduler.h b/WebCore/kwq/kio/scheduler.h
index f3e90b0..113be16 100644
--- a/WebCore/kwq/kio/scheduler.h
+++ b/WebCore/kwq/kio/scheduler.h
@@ -26,6 +26,12 @@
#ifndef SCHEDULER_H_
#define SCHEDULER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <qobject.h>
+
#include "job.h"
#include "jobclasses.h"
@@ -33,7 +39,7 @@ namespace KIO {
// class Scheduler =============================================================
-class Scheduler {
+class Scheduler : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -47,8 +53,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- Scheduler();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ Scheduler() {}
+#endif
+
~Scheduler();
// member functions --------------------------------------------------------
@@ -58,9 +67,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Scheduler(const Scheduler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Scheduler &operator=(const Scheduler &);
+#endif
}; // class Scheduler ==========================================================
diff --git a/WebCore/kwq/kparts/browserextension.h b/WebCore/kwq/kparts/browserextension.h
index b90bff5..ca2a80b 100644
--- a/WebCore/kwq/kparts/browserextension.h
+++ b/WebCore/kwq/kparts/browserextension.h
@@ -26,6 +26,10 @@
#ifndef BROWSEREXTENSION_H_
#define BROWSEREXTENSION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpoint.h>
#include <qevent.h>
#include <KWQDataStream.h>
@@ -49,7 +53,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
KXMLGUIClient();
-
~KXMLGUIClient();
// member functions --------------------------------------------------------
@@ -59,21 +62,43 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KXMLGUIClient(const KXMLGUIClient &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KXMLGUIClient &operator=(const KXMLGUIClient &);
+#endif
}; // class KXMLGUIClient ======================================================
namespace KParts {
+// struct URLArgs ==============================================================
+
struct URLArgs {
+
QString frameName;
QString serviceType;
-};
+
+ URLArgs();
+ URLArgs( const URLArgs &);
+ URLArgs &operator=(const URLArgs &);
+ virtual ~URLArgs();
+
+}; // struct URLArgs ===========================================================
+
+
+// struct WindowArgs ===========================================================
struct WindowArgs {
+
int x;
int y;
int width;
@@ -83,11 +108,17 @@ struct WindowArgs {
bool toolBarsVisible;
bool resizable;
bool fullscreen;
-};
+
+ WindowArgs();
+ WindowArgs(const WindowArgs &);
+ WindowArgs &operator=(const WindowArgs &);
+
+}; // struct WindowArgs ========================================================
+
// class BrowserExtension ======================================================
-class BrowserExtension {
+class BrowserExtension : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -98,9 +129,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- BrowserExtension();
-
- ~BrowserExtension();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ BrowserExtension() {}
+#endif
+
+ virtual ~BrowserExtension();
// member functions --------------------------------------------------------
@@ -120,16 +154,25 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserExtension(const BrowserExtension &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserExtension &operator=(const BrowserExtension &);
+#endif
}; // class BrowserExtension ===================================================
// class BrowserHostExtension ==================================================
-class BrowserHostExtension {
+class BrowserHostExtension : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -141,7 +184,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
BrowserHostExtension();
- ~BrowserHostExtension();
+ virtual ~BrowserHostExtension();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -150,9 +193,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserHostExtension(const BrowserHostExtension &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserHostExtension &operator=(const BrowserHostExtension &);
+#endif
}; // class BrowserHostExtension ===============================================
diff --git a/WebCore/kwq/kparts/browserinterface.h b/WebCore/kwq/kparts/browserinterface.h
index 8e38a5d..e8d369e 100644
--- a/WebCore/kwq/kparts/browserinterface.h
+++ b/WebCore/kwq/kparts/browserinterface.h
@@ -26,6 +26,10 @@
#ifndef BROWSERINTERFACE_H_
#define BROWSERINTERFACE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qvariant.h>
@@ -44,9 +48,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- BrowserInterface(QObject *parent, const char *name = 0);
-
- ~BrowserInterface();
+ BrowserInterface(QObject *parent, const char *name=0);
+ virtual ~BrowserInterface();
// member functions --------------------------------------------------------
@@ -58,9 +61,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserInterface(const BrowserInterface &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserInterface &operator=(const BrowserInterface &);
+#endif
}; // class BrowserInterface ===================================================
diff --git a/WebCore/kwq/kparts/event.h b/WebCore/kwq/kparts/event.h
index 2ce1eeb..f15c2ac 100644
--- a/WebCore/kwq/kparts/event.h
+++ b/WebCore/kwq/kparts/event.h
@@ -26,6 +26,10 @@
#ifndef EVENT_H_
#define EVENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qevent.h>
class QPainter;
@@ -50,7 +54,10 @@ public:
Event(const char *);
- virtual ~Event();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~Event() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -59,9 +66,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Event(const Event &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Event &operator=(const Event &);
+#endif
}; // class Event ==============================================================
diff --git a/WebCore/kwq/kparts/factory.h b/WebCore/kwq/kparts/factory.h
index c019da5..d5a6c84 100644
--- a/WebCore/kwq/kparts/factory.h
+++ b/WebCore/kwq/kparts/factory.h
@@ -26,6 +26,10 @@
#ifndef FACTORY_H_
#define FACTORY_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "part.h"
namespace KParts {
@@ -44,8 +48,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
Factory();
-
- ~Factory();
+ virtual ~Factory();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -54,9 +57,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Factory(const Factory &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Factory &operator=(const Factory &);
+#endif
}; // class Factory ============================================================
diff --git a/WebCore/kwq/kparts/historyprovider.h b/WebCore/kwq/kparts/historyprovider.h
index edbcdb7..aeaf5d9 100644
--- a/WebCore/kwq/kparts/historyprovider.h
+++ b/WebCore/kwq/kparts/historyprovider.h
@@ -26,6 +26,10 @@
#ifndef HISTORYPROVIDER_H_
#define HISTORYPROVIDER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
namespace KParts {
@@ -47,8 +51,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
HistoryProvider();
-
- ~HistoryProvider();
+ virtual ~HistoryProvider();
// member functions --------------------------------------------------------
@@ -60,9 +63,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
HistoryProvider(const HistoryProvider &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
HistoryProvider &operator=(const HistoryProvider &);
+#endif
}; // class HistoryProvider ====================================================
diff --git a/WebCore/kwq/kparts/part.h b/WebCore/kwq/kparts/part.h
index 52334b6..6a2381b 100644
--- a/WebCore/kwq/kparts/part.h
+++ b/WebCore/kwq/kparts/part.h
@@ -26,6 +26,10 @@
#ifndef PART_H_
#define PART_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kurl.h>
#include <qobject.h>
#include <qvariant.h>
@@ -58,8 +62,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
Part();
-
- ~Part();
+ virtual ~Part();
// member functions --------------------------------------------------------
@@ -72,9 +75,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Part(const Part &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Part &operator=(const Part &);
+#endif
}; // class Part ===============================================================
@@ -93,8 +105,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
ReadOnlyPart();
-
- ~ReadOnlyPart();
+ virtual ~ReadOnlyPart();
// member functions --------------------------------------------------------
@@ -106,9 +117,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
ReadOnlyPart(const ReadOnlyPart &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
ReadOnlyPart &operator=(const ReadOnlyPart &);
+#endif
}; // class ReadOnlyPart =======================================================
@@ -126,10 +146,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- GUIActivateEvent();
-
- ~GUIActivateEvent();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ GUIActivateEvent() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~GUIActivateEvent() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -137,9 +163,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
GUIActivateEvent(const GUIActivateEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
GUIActivateEvent &operator=(const GUIActivateEvent &);
+#endif
}; // class GUIActivateEvent ===================================================
diff --git a/WebCore/kwq/qt/qapplication.h b/WebCore/kwq/qt/qapplication.h
index 1775340..9970059 100644
--- a/WebCore/kwq/qt/qapplication.h
+++ b/WebCore/kwq/qt/qapplication.h
@@ -26,6 +26,10 @@
#ifndef QAPPLICATION_H_
#define QAPPLICATION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qpalette.h"
#include "qsize.h"
@@ -51,7 +55,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QApplication();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QApplication() {}
+#endif
+
+ QApplication( int &argc, char **argv);
virtual ~QApplication();
// member functions --------------------------------------------------------
@@ -63,6 +72,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QApplication(const QApplication &);
QApplication &operator=(const QApplication &);
diff --git a/WebCore/kwq/qt/qarray.h b/WebCore/kwq/qt/qarray.h
index eba6a2f..163cd93 100644
--- a/WebCore/kwq/qt/qarray.h
+++ b/WebCore/kwq/qt/qarray.h
@@ -26,6 +26,10 @@
#ifndef QARRAY_H_
#define QARRAY_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QArray ================================================================
@@ -40,13 +44,10 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QArray();
+ QArray() {}
QArray(int);
QArray(const QArray<T> &);
-
- QArray<T> &operator=(const QArray<T> &);
-
- ~QArray();
+ ~QArray() {}
// member functions --------------------------------------------------------
@@ -60,6 +61,7 @@ public:
// operators ---------------------------------------------------------------
+ QArray<T> &operator=(const QArray<T> &);
T &operator[](int) const;
bool operator==(const QArray<T> &);
bool operator!=(const QArray<T> &);
diff --git a/WebCore/kwq/qt/qasyncimageio.h b/WebCore/kwq/qt/qasyncimageio.h
index 94d018b..8eca5b9 100644
--- a/WebCore/kwq/qt/qasyncimageio.h
+++ b/WebCore/kwq/qt/qasyncimageio.h
@@ -26,6 +26,10 @@
#ifndef QASYNCIMAGEIO_H_
#define QASYNCIMAGEIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// for memset
#include <string.h>
@@ -51,9 +55,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageConsumer();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageConsumer() {}
+#endif
- ~QImageConsumer();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QImageConsumer() {}
+#endif
// member functions --------------------------------------------------------
@@ -67,9 +77,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageConsumer(const QImageConsumer &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageConsumer &operator=(const QImageConsumer &);
+#endif
}; // end class QImageConsumer
@@ -91,8 +110,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageDecoder();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageDecoder() {}
+#endif
+ QImageDecoder(QImageConsumer *);
~QImageDecoder();
// member functions --------------------------------------------------------
@@ -102,9 +125,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageDecoder(const QImageDecoder &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageDecoder &operator=(const QImageDecoder &);
+#endif
}; // end class QImageDecoder
@@ -123,7 +155,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageFormat();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageFormat() {}
+#endif
+
virtual ~QImageFormat();
// member functions --------------------------------------------------------
@@ -136,9 +172,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageFormat(const QImageFormat &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageFormat &operator=(const QImageFormat &);
+#endif
}; // end class QImageFormat
@@ -157,7 +202,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageFormatType();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageFormatType() {}
+#endif
+
virtual ~QImageFormatType();
// member functions --------------------------------------------------------
@@ -170,9 +219,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageFormatType(const QImageFormatType &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageFormatType &operator=(const QImageFormatType &);
+#endif
}; // end class QImageFormatType
diff --git a/WebCore/kwq/qt/qasyncio.h b/WebCore/kwq/qt/qasyncio.h
index be558eb..9eeeb7b 100644
--- a/WebCore/kwq/qt/qasyncio.h
+++ b/WebCore/kwq/qt/qasyncio.h
@@ -26,6 +26,10 @@
#ifndef QASYNCIO_H_
#define QASYNCIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QAsyncIO ==============================================================
@@ -41,7 +45,11 @@ protected:
// constructors, copy constructors, and destructors ------------------------
- QAsyncIO() {};
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QAsyncIO() {}
+#endif
+
virtual ~QAsyncIO();
// member functions --------------------------------------------------------
@@ -53,9 +61,18 @@ protected:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QAsyncIO(const QAsyncIO &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QAsyncIO &operator=(const QAsyncIO &);
+#endif
}; // class QAsyncIO ===========================================================
@@ -71,8 +88,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QDataSource() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~QDataSource() {}
+#endif
// member functions --------------------------------------------------------
@@ -85,9 +109,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDataSource(const QDataSource &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDataSource &operator=(const QDataSource &);
+#endif
}; // end class QDataSource ====================================================
@@ -103,8 +136,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QDataSink() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~QDataSink() {}
+#endif
// member functions --------------------------------------------------------
@@ -116,9 +156,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDataSink(const QDataSink &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDataSink &operator=(const QDataSink &);
+#endif
}; // class QDataSink ==========================================================
diff --git a/WebCore/kwq/qt/qbitmap.h b/WebCore/kwq/qt/qbitmap.h
index 16e720b..fcef341 100644
--- a/WebCore/kwq/qt/qbitmap.h
+++ b/WebCore/kwq/qt/qbitmap.h
@@ -26,6 +26,10 @@
#ifndef QBITMAP_H_
#define QBITMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpixmap.h"
#include "qimage.h"
@@ -44,7 +48,10 @@ public:
QBitmap(int,int);
QBitmap(const QBitmap &);
- ~QBitmap();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QBitmap() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
diff --git a/WebCore/kwq/qt/qbrush.h b/WebCore/kwq/qt/qbrush.h
index ccbdf24..b8367fa 100644
--- a/WebCore/kwq/qt/qbrush.h
+++ b/WebCore/kwq/qt/qbrush.h
@@ -26,6 +26,10 @@
#ifndef QBRUSH_H_
#define QBRUSH_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qcolor.h"
#include "qnamespace.h"
@@ -45,9 +49,7 @@ public:
QBrush();
QBrush(const QColor &);
QBrush(const QBrush &);
-
QBrush &operator=(const QBrush &);
-
~QBrush();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qbuffer.h b/WebCore/kwq/qt/qbuffer.h
index 45a8aa1..4db04c7 100644
--- a/WebCore/kwq/qt/qbuffer.h
+++ b/WebCore/kwq/qt/qbuffer.h
@@ -26,6 +26,10 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include "qarray.h"
@@ -44,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QBuffer();
-
~QBuffer();
// member functions --------------------------------------------------------
@@ -63,6 +66,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QBuffer(const QBuffer &);
QBuffer &operator=(const QBuffer &);
diff --git a/WebCore/kwq/qt/qbutton.h b/WebCore/kwq/qt/qbutton.h
index d337499..8ee3254 100644
--- a/WebCore/kwq/qt/qbutton.h
+++ b/WebCore/kwq/qt/qbutton.h
@@ -26,6 +26,10 @@
#ifndef QBUTTON_H_
#define QBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qstring.h"
@@ -41,10 +45,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QButton();
- QButton(QWidget *);
-
- virtual ~QButton();
+ QButton(QWidget *parent=0);
+ ~QButton();
// member functions --------------------------------------------------------
@@ -58,6 +60,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QButton(const QButton &);
QButton &operator=(const QButton &);
diff --git a/WebCore/kwq/qt/qcheckbox.h b/WebCore/kwq/qt/qcheckbox.h
index ba756de..55e2c40 100644
--- a/WebCore/kwq/qt/qcheckbox.h
+++ b/WebCore/kwq/qt/qcheckbox.h
@@ -26,6 +26,10 @@
#ifndef QCHECKBOX_H_
#define QCHECKBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
// class QCheckBox =============================================================
@@ -40,9 +44,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QCheckBox();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QCheckBox() {}
+#endif
+
QCheckBox(QWidget *);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QCheckBox() {}
+#endif
+
// member functions --------------------------------------------------------
void setChecked(bool);
@@ -54,8 +67,10 @@ public:
// private ---------------------------------------------------------------------
private:
- QCheckBox(const QCheckBox &);
- QCheckBox &operator=(const QCheckBox &);
+ // no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
+ QCheckBox(const QCheckBox &);
+ QCheckBox &operator=(const QCheckBox &);
}; // class QCheckBox ==========================================================
diff --git a/WebCore/kwq/qt/qcolor.h b/WebCore/kwq/qt/qcolor.h
index bb52036..e8de1f2 100644
--- a/WebCore/kwq/qt/qcolor.h
+++ b/WebCore/kwq/qt/qcolor.h
@@ -26,6 +26,10 @@
#ifndef QCOLOR_H_
#define QCOLOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qstring.h"
@@ -48,7 +52,10 @@ public:
QColor(const char *);
QColor(const QColor &);
- ~QColor();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QColor() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qcombobox.h b/WebCore/kwq/qt/qcombobox.h
index 1e4f557..42c9134 100644
--- a/WebCore/kwq/qt/qcombobox.h
+++ b/WebCore/kwq/qt/qcombobox.h
@@ -26,6 +26,10 @@
#ifndef QCOMBOBOX_H_
#define QCOMBOBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQListBox.h>
#include "qwidget.h"
@@ -43,7 +47,6 @@ public:
QComboBox(QWidget *parent=0, const char *name=0);
QComboBox(bool rw, QWidget *parent=0, const char *name=0);
-
~QComboBox();
// member functions --------------------------------------------------------
@@ -64,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QComboBox(const QComboBox &);
QComboBox &operator=(const QComboBox &);
diff --git a/WebCore/kwq/qt/qcstring.h b/WebCore/kwq/qt/qcstring.h
index a142c22..9b7ea6b 100644
--- a/WebCore/kwq/qt/qcstring.h
+++ b/WebCore/kwq/qt/qcstring.h
@@ -26,6 +26,10 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// FIXME: does our implementation of QCString really need to inherit from
// QByteArray and QArray?
diff --git a/WebCore/kwq/qt/qcursor.h b/WebCore/kwq/qt/qcursor.h
index 7bdec14..b137ac3 100644
--- a/WebCore/kwq/qt/qcursor.h
+++ b/WebCore/kwq/qt/qcursor.h
@@ -26,6 +26,10 @@
#ifndef QCURSOR_H
#define QCURSOR_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QCursor ===============================================================
class QCursor {
@@ -39,9 +43,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QCursor();
-
QCursor(const QCursor &);
-
~QCursor();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qdatetime.h b/WebCore/kwq/qt/qdatetime.h
index bc1eafb..9ec7036 100644
--- a/WebCore/kwq/qt/qdatetime.h
+++ b/WebCore/kwq/qt/qdatetime.h
@@ -26,6 +26,10 @@
#ifndef QDATETIME_H_
#define QDATETIME_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QTime =================================================================
class QTime {
@@ -39,9 +43,11 @@ public:
QTime();
QTime(int, int);
- QTime(const QTime &);
- ~QTime();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTime() {}
+#endif
// member functions --------------------------------------------------------
@@ -58,6 +64,14 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QTime(const QTime &);
+#endif
+
}; // class QTime ==============================================================
@@ -75,10 +89,12 @@ public:
QDate(int y, int m, int d);
- QDate(const QDate &);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QDate() {}
+#endif
// member functions --------------------------------------------------------
-
// operators ---------------------------------------------------------------
QDate &operator=(const QDate &);
@@ -86,6 +102,14 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QDate(const QDate &);
+#endif
+
}; // class QDate ==============================================================
@@ -104,9 +128,13 @@ public:
QDateTime();
QDateTime(QDate date, QTime time);
-
QDateTime(const QDateTime &);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QDateTime() {}
+#endif
+
// member functions --------------------------------------------------------
int secsTo(const QDateTime &) const;
@@ -114,7 +142,11 @@ public:
// operators ---------------------------------------------------------------
- QDateTime &operator=(const QDateTime &);
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QDateTime &operator=(const QDateTime &);
+ //
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
diff --git a/WebCore/kwq/qt/qdict.h b/WebCore/kwq/qt/qdict.h
index 27c50f0..ccc8cba 100644
--- a/WebCore/kwq/qt/qdict.h
+++ b/WebCore/kwq/qt/qdict.h
@@ -26,6 +26,10 @@
#ifndef QDICT_H_
#define QDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQCollection.h>
#include "qstring.h"
@@ -42,9 +46,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QDict(int size=17, bool caseSensitive=TRUE);
-
QDict(const QDict<T> &);
-
~QDict();
// member functions --------------------------------------------------------
@@ -76,8 +78,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QDictIterator() {}
+#endif
+
QDictIterator(const QDict<T> &);
-
~QDictIterator();
// member functions --------------------------------------------------------
@@ -94,9 +100,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDictIterator(const QDictIterator &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDictIterator &operator=(const QDictIterator &);
+#endif
}; // class QDictIterator ======================================================
diff --git a/WebCore/kwq/qt/qdir.h b/WebCore/kwq/qt/qdir.h
index cfc6077..4fa412f 100644
--- a/WebCore/kwq/qt/qdir.h
+++ b/WebCore/kwq/qt/qdir.h
@@ -26,6 +26,10 @@
#ifndef QDIR_H_
#define QDIR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qstringlist.h"
#include "qfile.h"
@@ -41,10 +45,10 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+
QDir();
QDir(const QString &);
QDir(const QDir &);
-
virtual ~QDir();
// member functions --------------------------------------------------------
@@ -57,13 +61,11 @@ public:
// operators ---------------------------------------------------------------
+ QDir &operator=(const QDir &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no assignment
- QDir &operator=(const QDir &);
-
}; // class QDir ===============================================================
#endif
diff --git a/WebCore/kwq/qt/qdrawutil.h b/WebCore/kwq/qt/qdrawutil.h
index 3393e7c..20ca608 100644
--- a/WebCore/kwq/qt/qdrawutil.h
+++ b/WebCore/kwq/qt/qdrawutil.h
@@ -26,6 +26,10 @@
#ifndef QDRAWUTIL_H_
#define QDRAWUTIL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpainter.h"
#include "qpalette.h"
#include "qbrush.h"
diff --git a/WebCore/kwq/qt/qevent.h b/WebCore/kwq/qt/qevent.h
index ea4a5d1..ba7d057 100644
--- a/WebCore/kwq/qt/qevent.h
+++ b/WebCore/kwq/qt/qevent.h
@@ -26,6 +26,10 @@
#ifndef QEVENT_H_
#define QEVENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qregion.h"
#include "qpoint.h"
@@ -54,8 +58,12 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QEvent() {}
+#endif
+
QEvent(Type);
-
virtual ~QEvent();
// member functions --------------------------------------------------------
@@ -68,9 +76,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QEvent(const QEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QEvent &operator=(const QEvent &);
+#endif
}; // class QEvent =============================================================
@@ -87,9 +104,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QMouseEvent() {}
+#endif
+
QMouseEvent(Type type, const QPoint &pos, int button, int state);
- virtual ~QMouseEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QMouseEvent() {}
+#endif
// member functions --------------------------------------------------------
@@ -107,9 +132,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QMouseEvent(const QMouseEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QMouseEvent &operator=(const QMouseEvent &);
+#endif
}; // class QMouseEvent ========================================================
@@ -126,9 +160,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTimerEvent() {}
+#endif
+
QTimerEvent(int timerId);
- virtual ~QTimerEvent();
+ ~QTimerEvent();
// member functions --------------------------------------------------------
@@ -140,9 +179,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTimerEvent(const QTimerEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTimerEvent &operator=(const QTimerEvent &);
+#endif
}; // class QTimerEvent ========================================================
@@ -158,10 +206,17 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
- QKeyEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QKeyEvent() {}
+#endif
+
QKeyEvent(Type, Key, int, int);
- virtual ~QKeyEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QKeyEvent() {}
+#endif
// member functions --------------------------------------------------------
@@ -175,9 +230,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QKeyEvent(const QKeyEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QKeyEvent &operator=(const QKeyEvent &);
+#endif
}; // class QKeyEvent ==========================================================
@@ -194,9 +258,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QFocusEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QFocusEvent() {}
+#endif
+
+ QFocusEvent(Type);
- virtual ~QFocusEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QFocusEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -205,9 +277,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QFocusEvent(const QFocusEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QFocusEvent &operator=(const QFocusEvent &);
+#endif
}; // class QFocusEvent ========================================================
@@ -224,9 +305,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QHideEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QHideEvent() {}
+#endif
- virtual ~QHideEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QHideEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -235,9 +322,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QHideEvent(const QHideEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QHideEvent &operator=(const QHideEvent &);
+#endif
}; // class QHideEvent =========================================================
@@ -254,9 +350,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QResizeEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QResizeEvent() {}
+#endif
- virtual ~QResizeEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QResizeEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -265,9 +367,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QResizeEvent(const QResizeEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QResizeEvent &operator=(const QResizeEvent &);
+#endif
}; // class QResizeEvent =======================================================
@@ -284,10 +395,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QShowEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QShowEvent() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QShowEvent() {}
+#endif
- virtual ~QShowEvent();
-
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -295,9 +412,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QShowEvent(const QShowEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QShowEvent &operator=(const QShowEvent &);
+#endif
}; // class QShowEvent =========================================================
@@ -314,9 +440,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QWheelEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QWheelEvent() {}
+#endif
- virtual ~QWheelEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QWheelEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -325,9 +457,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QWheelEvent(const QWheelEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QWheelEvent &operator=(const QWheelEvent &);
+#endif
}; // class QWheelEvent ========================================================
diff --git a/WebCore/kwq/qt/qfile.h b/WebCore/kwq/qt/qfile.h
index 08a520f..f1cfece 100644
--- a/WebCore/kwq/qt/qfile.h
+++ b/WebCore/kwq/qt/qfile.h
@@ -26,6 +26,10 @@
#ifndef QFILE_H_
#define QFILE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QFile =================================================================
@@ -42,7 +46,6 @@ public:
QFile();
QFile(const QString &);
-
~QFile();
// member functions --------------------------------------------------------
@@ -61,6 +64,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QFile(const QFile &);
QFile &operator=(const QFile &);
diff --git a/WebCore/kwq/qt/qfont.h b/WebCore/kwq/qt/qfont.h
index 688a260..bc2042e 100644
--- a/WebCore/kwq/qt/qfont.h
+++ b/WebCore/kwq/qt/qfont.h
@@ -26,6 +26,10 @@
#ifndef QFONT_H_
#define QFONT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class QFont =================================================================
@@ -46,9 +50,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QFont();
-
QFont(const QFont &);
-
~QFont();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qfontdatabase.h b/WebCore/kwq/qt/qfontdatabase.h
index adc253c..1893d78 100644
--- a/WebCore/kwq/qt/qfontdatabase.h
+++ b/WebCore/kwq/qt/qfontdatabase.h
@@ -26,6 +26,10 @@
#ifndef QFONTDATABASE_H_
#define QFONTDATABASE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qvaluelist.h"
#include "qfont.h"
#include "qstring.h"
@@ -44,7 +48,10 @@ public:
QFontDatabase();
- ~QFontDatabase();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QFontDatabase() {}
+#endif
// member functions --------------------------------------------------------
@@ -63,9 +70,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QFontDatabase(const QFontDatabase &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QFontDatabase &operator=(const QFontDatabase &);
+#endif
}; // class QFontDatabase ======================================================
diff --git a/WebCore/kwq/qt/qfontinfo.h b/WebCore/kwq/qt/qfontinfo.h
index bd24c56..9699903 100644
--- a/WebCore/kwq/qt/qfontinfo.h
+++ b/WebCore/kwq/qt/qfontinfo.h
@@ -26,6 +26,10 @@
#ifndef QFONTINFO_H_
#define QFONTINFO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qfont.h"
// class QFontInfo =============================================================
@@ -42,7 +46,6 @@ public:
QFontInfo(const QFont &);
QFontInfo(const QFontInfo &);
-
~QFontInfo();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qfontmetrics.h b/WebCore/kwq/qt/qfontmetrics.h
index f652f09..b872af1 100644
--- a/WebCore/kwq/qt/qfontmetrics.h
+++ b/WebCore/kwq/qt/qfontmetrics.h
@@ -26,6 +26,10 @@
#ifndef QFONTMETRICS_H_
#define QFONTMETRICS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qrect.h"
#include "qsize.h"
#include "qstring.h"
@@ -46,7 +50,6 @@ public:
QFontMetrics();
QFontMetrics(const QFont &);
QFontMetrics(const QFontMetrics &);
-
~QFontMetrics();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qguardedptr.h b/WebCore/kwq/qt/qguardedptr.h
index 6e4234b..ac779bf 100644
--- a/WebCore/kwq/qt/qguardedptr.h
+++ b/WebCore/kwq/qt/qguardedptr.h
@@ -26,6 +26,10 @@
#ifndef QGUARDEDPTR_H_
#define QGUARDEDPTR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
// class QGuardedPtr ===========================================================
@@ -52,15 +56,13 @@ public:
// operators ---------------------------------------------------------------
+ QGuardedPtr &operator=(const QGuardedPtr &);
operator T *() const;
T *operator->() const;
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- QGuardedPtr &operator=(const QGuardedPtr &);
-
}; // class QGuardedPtr ========================================================
#endif
diff --git a/WebCore/kwq/qt/qhbox.h b/WebCore/kwq/qt/qhbox.h
index 48e973d..a297f9a 100644
--- a/WebCore/kwq/qt/qhbox.h
+++ b/WebCore/kwq/qt/qhbox.h
@@ -26,6 +26,10 @@
#ifndef QHBOX_H_
#define QHBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include <KWQFrame.h>
@@ -43,7 +47,6 @@ public:
QHBox();
QHBox(QWidget *);
-
~QHBox();
// member functions --------------------------------------------------------
@@ -56,9 +59,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QHBox(const QHBox &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QHBox &operator=(const QHBox &);
+#endif
}; // class QHBox ==============================================================
diff --git a/WebCore/kwq/qt/qimage.h b/WebCore/kwq/qt/qimage.h
index 4c349de..bfc343e 100644
--- a/WebCore/kwq/qt/qimage.h
+++ b/WebCore/kwq/qt/qimage.h
@@ -26,6 +26,10 @@
#ifndef QIMAGE_H_
#define QIMAGE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qcolor.h"
@@ -43,7 +47,6 @@ public:
QImage();
QImage(const QImage &);
-
~QImage();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qinputdialog.h b/WebCore/kwq/qt/qinputdialog.h
index 5512a8a..7a15d1a 100644
--- a/WebCore/kwq/qt/qinputdialog.h
+++ b/WebCore/kwq/qt/qinputdialog.h
@@ -26,7 +26,12 @@
#ifndef QINPUTDIALOG_H_
#define QINPUTDIALOG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
+#include "qlabel.h"
#include "qwidget.h"
// class QInputDialog ==========================================================
@@ -46,8 +51,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QInputDialog() {}
+#endif
+ QInputDialog(const QString &label);
~QInputDialog() {}
// member functions --------------------------------------------------------
@@ -58,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QInputDialog(const QInputDialog &);
QInputDialog &operator=(const QInputDialog &);
diff --git a/WebCore/kwq/qt/qintcache.h b/WebCore/kwq/qt/qintcache.h
index 5c6bde5..8ac1b75 100644
--- a/WebCore/kwq/qt/qintcache.h
+++ b/WebCore/kwq/qt/qintcache.h
@@ -26,4 +26,8 @@
#ifndef QINTCACHE_H_
#define QINTCACHE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/kwq/qt/qintdict.h b/WebCore/kwq/qt/qintdict.h
index a93eceb..998868a 100644
--- a/WebCore/kwq/qt/qintdict.h
+++ b/WebCore/kwq/qt/qintdict.h
@@ -26,4 +26,8 @@
#ifndef QINTDICT_H_
#define QINTDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/kwq/qt/qlabel.h b/WebCore/kwq/qt/qlabel.h
index 4679fbb..418aadd 100644
--- a/WebCore/kwq/qt/qlabel.h
+++ b/WebCore/kwq/qt/qlabel.h
@@ -26,6 +26,10 @@
#ifndef QLABEL_H_
#define QLABEL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQFrame.h>
#include "qwidget.h"
#include "qstring.h"
@@ -42,10 +46,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QLabel() {}
+#endif
+
QLabel(QWidget *parent);
QLabel(const QString &, QWidget *);
-
- virtual ~QLabel();
+ ~QLabel();
// member functions --------------------------------------------------------
@@ -59,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QLabel(const QLabel &);
QLabel &operator=(const QLabel &);
diff --git a/WebCore/kwq/qt/qlayout.h b/WebCore/kwq/qt/qlayout.h
index b36c599..073e191 100644
--- a/WebCore/kwq/qt/qlayout.h
+++ b/WebCore/kwq/qt/qlayout.h
@@ -26,4 +26,8 @@
#ifndef QLAYOUT_H_
#define QLAYOUT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/kwq/qt/qlineedit.h b/WebCore/kwq/qt/qlineedit.h
index a95ddd1..32dcf75 100644
--- a/WebCore/kwq/qt/qlineedit.h
+++ b/WebCore/kwq/qt/qlineedit.h
@@ -26,6 +26,10 @@
#ifndef QLINEEDIT_H_
#define QLINEEDIT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qevent.h"
#include "qstring.h"
@@ -71,6 +75,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QLineEdit(const QLineEdit &);
QLineEdit &operator=(const QLineEdit &);
diff --git a/WebCore/kwq/qt/qlist.h b/WebCore/kwq/qt/qlist.h
index 81d5354..5c8ae91 100644
--- a/WebCore/kwq/qt/qlist.h
+++ b/WebCore/kwq/qt/qlist.h
@@ -26,6 +26,10 @@
#ifndef QLIST_H_
#define QLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -42,8 +46,7 @@ public:
QList();
QList(const QList<T> &);
-
- virtual ~QList();
+ ~QList();
// member functions --------------------------------------------------------
@@ -98,8 +101,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QListIterator(const QList<T> &);
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QListIterator() {}
+#endif
+ QListIterator(const QList<T> &);
~QListIterator();
// member functions --------------------------------------------------------
@@ -120,8 +127,12 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QListIterator<T>(const QListIterator<T> &);
+#endif
}; // class QListIterator ======================================================
diff --git a/WebCore/kwq/qt/qmap.h b/WebCore/kwq/qt/qmap.h
index 0c412b9..0681c6f 100644
--- a/WebCore/kwq/qt/qmap.h
+++ b/WebCore/kwq/qt/qmap.h
@@ -26,6 +26,10 @@
#ifndef QMAP_H_
#define QMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QMapIterator ==========================================================
@@ -41,9 +45,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
QMapIterator();
- QMapIterator(const QMapIterator<K,T>& it);
+ QMapIterator(const QMapIterator<K,T>&);
- ~QMapIterator();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QMapIterator() {}
+#endif
// member functions --------------------------------------------------------
@@ -59,9 +66,16 @@ public:
const T& operator*() const;
QMapIterator<K,T>& operator++();
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QMapIterator<K,T> &operator=(const QMapIterator<K,T> &);
+ //
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+
}; // class QMapIterator =======================================================
@@ -78,8 +92,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QMapConstIterator();
- QMapConstIterator(const QMapConstIterator<K,T>&);
- QMapConstIterator(const QMapIterator<K,T>&);
+ QMapConstIterator(const QMapConstIterator<K,T> &);
+ QMapConstIterator(const QMapIterator<K,T> &);
~QMapConstIterator();
@@ -91,11 +105,17 @@ public:
// operators ---------------------------------------------------------------
QMapConstIterator<K,T> &operator=(const QMapConstIterator<K,T> &);
- bool operator==(const QMapConstIterator<K,T>&) const;
- bool operator!=(const QMapConstIterator<K,T>&) const;
+ bool operator==(const QMapConstIterator<K,T> &) const;
+ bool operator!=(const QMapConstIterator<K,T> &) const;
const T &operator*() const;
QMapConstIterator<K,T>& operator++();
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QMapConstIterator<K,T> &operator=(const QMapConstIterator<K,T> &);
+ //
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
@@ -119,7 +139,6 @@ public:
QMap();
QMap(const QMap<K,T>&);
-
~QMap();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qmovie.h b/WebCore/kwq/qt/qmovie.h
index 7843d88..81e3b7c 100644
--- a/WebCore/kwq/qt/qmovie.h
+++ b/WebCore/kwq/qt/qmovie.h
@@ -26,6 +26,10 @@
#ifndef QMOVIE_H_
#define QMOVIE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
#include "qasyncio.h"
#include "qpixmap.h"
@@ -51,7 +55,6 @@ public:
QMovie();
QMovie(QDataSource*, int bufsize=1024);
QMovie(const QMovie &);
-
~QMovie();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qnamespace.h b/WebCore/kwq/qt/qnamespace.h
index 7a5b06d..f41f3f9 100644
--- a/WebCore/kwq/qt/qnamespace.h
+++ b/WebCore/kwq/qt/qnamespace.h
@@ -26,6 +26,10 @@
#ifndef QNAMESPACE_H_
#define QNAMESPACE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QColor;
class QCursor;
@@ -116,8 +120,15 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
Qt() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~Qt() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -126,9 +137,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Qt(const Qt &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Qt &operator=(const Qt &);
+#endif
}; // class Qt =================================================================
diff --git a/WebCore/kwq/qt/qobject.h b/WebCore/kwq/qt/qobject.h
index 993535a..a791d2e 100644
--- a/WebCore/kwq/qt/qobject.h
+++ b/WebCore/kwq/qt/qobject.h
@@ -26,6 +26,10 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include "qnamespace.h"
@@ -83,7 +87,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QObject(QObject *parent=0, const char *name=0);
-
virtual ~QObject();
// member functions --------------------------------------------------------
@@ -111,6 +114,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QObject(const QObject &);
QObject &operator=(const QObject &);
diff --git a/WebCore/kwq/qt/qpaintdevice.h b/WebCore/kwq/qt/qpaintdevice.h
index 327cb1d..a3ef57c 100644
--- a/WebCore/kwq/qt/qpaintdevice.h
+++ b/WebCore/kwq/qt/qpaintdevice.h
@@ -26,6 +26,10 @@
#ifndef QPAINTDEVICE_H_
#define QPAINTDEVICE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QPaintDevice ==========================================================
class QPaintDevice {
@@ -36,7 +40,16 @@ public:
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
+
// constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPaintDevice() {}
+#endif
+
+ virtual ~QPaintDevice();
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -45,6 +58,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPaintDevice(const QPaintDevice &);
QPaintDevice &operator=(const QPaintDevice &);
diff --git a/WebCore/kwq/qt/qpaintdevicemetrics.h b/WebCore/kwq/qt/qpaintdevicemetrics.h
index f9161d5..7701d2a 100644
--- a/WebCore/kwq/qt/qpaintdevicemetrics.h
+++ b/WebCore/kwq/qt/qpaintdevicemetrics.h
@@ -26,6 +26,10 @@
#ifndef QPAINTDEVICEMETRICS_H_
#define QPAINTDEVICEMETRICS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QPaintDevice;
// class QPaintDeviceMetrics ===================================================
@@ -40,8 +44,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+#endif
+
QPaintDeviceMetrics(const QPaintDevice *);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QPaintDeviceMetrics() {}
+#endif
+
// member functions --------------------------------------------------------
int logicalDpiY() const;
@@ -53,9 +66,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QPaintDeviceMetrics(const QPaintDeviceMetrics &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QPaintDeviceMetrics &operator=(const QPaintDeviceMetrics &);
+#endif
}; // class QPaintDeviceMetrics ================================================
diff --git a/WebCore/kwq/qt/qpainter.h b/WebCore/kwq/qt/qpainter.h
index 6ef1049..2f9745c 100644
--- a/WebCore/kwq/qt/qpainter.h
+++ b/WebCore/kwq/qt/qpainter.h
@@ -26,6 +26,10 @@
#ifndef QPAINTER_H_
#define QPAINTER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qpaintdevice.h"
#include "qcolor.h"
@@ -53,7 +57,10 @@ public:
QWMatrix();
- ~QWMatrix();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QWMatrix() {}
+#endif
// member functions --------------------------------------------------------
@@ -64,6 +71,20 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QWMatrix(const QWMatrix &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QWMatrix &operator=(const QWMatrix &);
+#endif
+
}; // class QWMatrix ===========================================================
@@ -81,7 +102,6 @@ public:
QPainter();
QPainter(const QPaintDevice *);
-
~QPainter();
// member functions --------------------------------------------------------
@@ -132,6 +152,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPainter(const QPainter &);
QPainter &operator=(const QPainter &);
diff --git a/WebCore/kwq/qt/qpalette.h b/WebCore/kwq/qt/qpalette.h
index b0464ad..e14a5af 100644
--- a/WebCore/kwq/qt/qpalette.h
+++ b/WebCore/kwq/qt/qpalette.h
@@ -26,6 +26,10 @@
#ifndef QPALETTE_H_
#define QPALETTE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QColor;
// class QColorGroup ===========================================================
@@ -56,7 +60,6 @@ public:
QColorGroup();
QColorGroup(const QColorGroup &);
-
~QColorGroup();
// member functions --------------------------------------------------------
@@ -103,7 +106,6 @@ public:
QPalette();
QPalette(const QPalette &);
-
~QPalette();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qpen.h b/WebCore/kwq/qt/qpen.h
index fe659bd..9547532 100644
--- a/WebCore/kwq/qt/qpen.h
+++ b/WebCore/kwq/qt/qpen.h
@@ -26,6 +26,10 @@
#ifndef QPEN_H_
#define QPEN_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qcolor.h"
@@ -44,7 +48,6 @@ public:
QPen();
QPen(const QColor &color, uint width=0, PenStyle style=SolidLine);
QPen(const QPen &);
-
~QPen();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qpixmap.h b/WebCore/kwq/qt/qpixmap.h
index 0edfdac..0519a7a 100644
--- a/WebCore/kwq/qt/qpixmap.h
+++ b/WebCore/kwq/qt/qpixmap.h
@@ -26,6 +26,10 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpaintdevice.h"
#include "qcolor.h"
#include "qstring.h"
@@ -54,7 +58,6 @@ public:
QPixmap(const QByteArray&);
QPixmap(int,int);
QPixmap(const QPixmap &);
-
~QPixmap();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qpoint.h b/WebCore/kwq/qt/qpoint.h
index db7cd4d..a4f04c0 100644
--- a/WebCore/kwq/qt/qpoint.h
+++ b/WebCore/kwq/qt/qpoint.h
@@ -26,8 +26,14 @@
#ifndef QPOINT_H_
#define QPOINT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
+#include "qarray.h"
+
// class QPoint ================================================================
class QPoint {
@@ -44,7 +50,10 @@ public:
QPoint(int, int);
QPoint(const QPoint &);
- ~QPoint();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QPoint() {}
+#endif
// member functions --------------------------------------------------------
@@ -68,7 +77,7 @@ public:
// class QPointArray ===========================================================
-class QPointArray {
+class QPointArray : public QArray<QPoint> {
public:
// typedefs ----------------------------------------------------------------
@@ -78,8 +87,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QPointArray(int);
+ QPointArray(const QPointArray &);
QPointArray(int, const QCOORD *);
-
~QPointArray();
// member functions --------------------------------------------------------
@@ -89,14 +98,11 @@ public:
// operators ---------------------------------------------------------------
+ QPointArray &operator=(const QPointArray &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QPointArray(const QPointArray &);
- QPointArray &operator=(const QPointArray &);
-
}; // class QPointArray ========================================================
#endif
diff --git a/WebCore/kwq/qt/qpopupmenu.h b/WebCore/kwq/qt/qpopupmenu.h
index f186004..6cb02a3 100644
--- a/WebCore/kwq/qt/qpopupmenu.h
+++ b/WebCore/kwq/qt/qpopupmenu.h
@@ -26,6 +26,10 @@
#ifndef QPOPUPMENU_H_
#define QPOPUPMENU_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QPopupMenu ============================================================
class QPopupMenu {
@@ -39,7 +43,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QPopupMenu();
-
~QPopupMenu();
// member functions --------------------------------------------------------
@@ -50,6 +53,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPopupMenu(const QPopupMenu &);
QPopupMenu &operator=(const QPopupMenu &);
diff --git a/WebCore/kwq/qt/qptrdict.h b/WebCore/kwq/qt/qptrdict.h
index 4865c39..7f139ab 100644
--- a/WebCore/kwq/qt/qptrdict.h
+++ b/WebCore/kwq/qt/qptrdict.h
@@ -26,6 +26,10 @@
#ifndef QPTRDICT_H_
#define QPTRDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -43,7 +47,6 @@ public:
QPtrDict(int size=17);
QPtrDict(const QPtrDict<T> &);
-
~QPtrDict();
// member functions --------------------------------------------------------
@@ -79,9 +82,13 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QPtrDictIterator(const QPtrDict<T> &);
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPtrDictIterator() {}
+#endif
- ~QPtrDictIterator();
+ QPtrDictIterator(const QPtrDict<T> &);
+ ~QPtrDictIterator() {}
// member functions --------------------------------------------------------
@@ -96,9 +103,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QPtrDictIterator(const QPtrDictIterator &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QPtrDictIterator &operator=(const QPtrDictIterator &);
+#endif
}; // class QPtrDictIterator ===================================================
diff --git a/WebCore/kwq/qt/qpushbutton.h b/WebCore/kwq/qt/qpushbutton.h
index c81de3b..df3bc77 100644
--- a/WebCore/kwq/qt/qpushbutton.h
+++ b/WebCore/kwq/qt/qpushbutton.h
@@ -26,6 +26,10 @@
#ifndef QPUSHBUTTON_H_
#define QPUSHBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
#include "qwidget.h"
@@ -43,10 +47,13 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QPushButton();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPushButton() {}
+#endif
+
QPushButton(QWidget *);
QPushButton(const QString &text, QWidget *parent, const char* name=0);
-
~QPushButton();
// member functions --------------------------------------------------------
@@ -57,6 +64,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPushButton(const QPushButton &);
QPushButton &operator=(const QPushButton &);
diff --git a/WebCore/kwq/qt/qradiobutton.h b/WebCore/kwq/qt/qradiobutton.h
index f5b269c..30bb290 100644
--- a/WebCore/kwq/qt/qradiobutton.h
+++ b/WebCore/kwq/qt/qradiobutton.h
@@ -26,6 +26,10 @@
#ifndef QRADIOBUTTON_H_
#define QRADIOBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
#include "qwidget.h"
@@ -42,10 +46,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QRadioButton();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QRadioButton() {}
+#endif
+
QRadioButton(QWidget *);
- ~QRadioButton();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QRadioButton() {}
+#endif
// member functions --------------------------------------------------------
@@ -58,6 +69,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QRadioButton(const QRadioButton &);
QRadioButton &operator=(const QRadioButton &);
diff --git a/WebCore/kwq/qt/qrect.h b/WebCore/kwq/qt/qrect.h
index 6cdc4df..27f1cc5 100644
--- a/WebCore/kwq/qt/qrect.h
+++ b/WebCore/kwq/qt/qrect.h
@@ -26,6 +26,10 @@
#ifndef QRECT_H_
#define QRECT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qsize.h"
// class QRect =================================================================
@@ -44,7 +48,10 @@ public:
QRect(int l, int t, int w, int h);
QRect(const QRect &);
- ~QRect();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QRect() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qregexp.h b/WebCore/kwq/qt/qregexp.h
index c92c663..f092dbe 100644
--- a/WebCore/kwq/qt/qregexp.h
+++ b/WebCore/kwq/qt/qregexp.h
@@ -26,6 +26,10 @@
#ifndef QREGEXP_H_
#define QREGEXP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QRegExp ===============================================================
@@ -43,7 +47,6 @@ public:
QRegExp();
QRegExp(const QString &);
QRegExp(const QRegExp &);
-
~QRegExp();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qregion.h b/WebCore/kwq/qt/qregion.h
index b087686..f064442 100644
--- a/WebCore/kwq/qt/qregion.h
+++ b/WebCore/kwq/qt/qregion.h
@@ -26,6 +26,10 @@
#ifndef QREGION_H_
#define QREGION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpoint.h"
#include "qimage.h"
#include "qrect.h"
@@ -51,7 +55,6 @@ public:
QRegion(int, int, int, int, RegionType = Rectangle);
QRegion(const QPointArray &);
QRegion(const QRegion &);
-
~QRegion();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qscrollview.h b/WebCore/kwq/qt/qscrollview.h
index fbfb585..41ffdf2 100644
--- a/WebCore/kwq/qt/qscrollview.h
+++ b/WebCore/kwq/qt/qscrollview.h
@@ -26,6 +26,10 @@
#ifndef QSCROLLVIEW_H_
#define QSCROLLVIEW_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQScrollBar.h>
#include <KWQFrame.h>
#include "qwidget.h"
@@ -48,8 +52,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QScrollView();
-
- virtual ~QScrollView();
+ ~QScrollView();
// member functions --------------------------------------------------------
@@ -83,6 +86,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QScrollView(const QScrollView &);
QScrollView &operator=(const QScrollView &);
diff --git a/WebCore/kwq/qt/qsize.h b/WebCore/kwq/qt/qsize.h
index 195708a..b78b584 100644
--- a/WebCore/kwq/qt/qsize.h
+++ b/WebCore/kwq/qt/qsize.h
@@ -26,6 +26,10 @@
#ifndef QSIZE_H_
#define QSIZE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QSize =================================================================
class QSize {
@@ -42,7 +46,10 @@ public:
QSize(int,int);
QSize(const QSize &);
- ~QSize();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QSize() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qsortedlist.h b/WebCore/kwq/qt/qsortedlist.h
index caa9d38..cfb570c 100644
--- a/WebCore/kwq/qt/qsortedlist.h
+++ b/WebCore/kwq/qt/qsortedlist.h
@@ -26,6 +26,10 @@
#ifndef QSORTEDLIST_H_
#define QSORTEDLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qlist.h"
// class QSortedList ===========================================================
@@ -42,7 +46,6 @@ public:
QSortedList();
QSortedList(const QSortedList<T> &);
-
~QSortedList();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qstack.h b/WebCore/kwq/qt/qstack.h
index 3570460..9ee3143 100644
--- a/WebCore/kwq/qt/qstack.h
+++ b/WebCore/kwq/qt/qstack.h
@@ -26,6 +26,10 @@
#ifndef QSTACK_H_
#define QSTACK_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QStack ================================================================
template<class T> class QStack {
@@ -39,7 +43,6 @@ public:
QStack();
QStack(const QStack<T> &);
-
~QStack();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qstring.h b/WebCore/kwq/qt/qstring.h
index 71366c6..8edeca7 100644
--- a/WebCore/kwq/qt/qstring.h
+++ b/WebCore/kwq/qt/qstring.h
@@ -26,6 +26,10 @@
#ifndef QSTRING_H_
#define QSTRING_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#define Fixed MacFixed
#define Rect MacRect
#define Boolean MacBoolean
@@ -267,8 +271,12 @@ public:
// private ---------------------------------------------------------------------
private:
- // no assignment
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QConstString &operator=(const QConstString &);
+#endif
}; // class QConstString =======================================================
diff --git a/WebCore/kwq/qt/qstringlist.h b/WebCore/kwq/qt/qstringlist.h
index a697574..35207db 100644
--- a/WebCore/kwq/qt/qstringlist.h
+++ b/WebCore/kwq/qt/qstringlist.h
@@ -26,6 +26,10 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qvaluelist.h"
diff --git a/WebCore/kwq/qt/qtextcodec.h b/WebCore/kwq/qt/qtextcodec.h
index 8689bb8..29d5356 100644
--- a/WebCore/kwq/qt/qtextcodec.h
+++ b/WebCore/kwq/qt/qtextcodec.h
@@ -26,6 +26,10 @@
#ifndef QTEXTCODEC_H_
#define QTEXTCODEC_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qcstring.h"
@@ -41,8 +45,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QTextDecoder();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTextDecoder() {}
+#endif
+
virtual ~QTextDecoder();
// member functions --------------------------------------------------------
@@ -55,9 +62,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextDecoder(const QTextDecoder &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextDecoder &operator=(const QTextDecoder &);
+#endif
}; // class QTextDecoder =======================================================
@@ -79,8 +95,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QTextCodec();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTextCodec() {}
+#endif
+
virtual ~QTextCodec();
// member functions --------------------------------------------------------
@@ -100,9 +119,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextCodec(const QTextCodec &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextCodec &operator=(const QTextCodec &);
+#endif
}; // class QTextCodec =========================================================
diff --git a/WebCore/kwq/qt/qtextstream.h b/WebCore/kwq/qt/qtextstream.h
index 7024dcf..e600247 100644
--- a/WebCore/kwq/qt/qtextstream.h
+++ b/WebCore/kwq/qt/qtextstream.h
@@ -26,6 +26,10 @@
#ifndef QTEXTSTREAM_H_
#define QTEXTSTREAM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QTextStream ===========================================================
@@ -42,7 +46,6 @@ public:
QTextStream();
QTextStream(QByteArray, int);
-
virtual ~QTextStream();
// member functions --------------------------------------------------------
@@ -58,6 +61,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QTextStream(const QTextStream &);
QTextStream &operator=(const QTextStream &);
@@ -78,7 +82,11 @@ public:
QTextIStream(QString *);
- virtual ~QTextIStream();
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTextIStream() {}
+#endif
// member functions --------------------------------------------------------
@@ -90,9 +98,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextIStream(const QTextIStream &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextIStream &operator=(const QTextIStream &);
+#endif
}; // class QTextIStream =======================================================
@@ -112,7 +129,10 @@ public:
QTextOStream(QString *);
QTextOStream(QByteArray);
- virtual ~QTextOStream();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTextOStream() {}
+#endif
// member functions --------------------------------------------------------
@@ -124,9 +144,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextOStream(const QTextOStream &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextOStream &operator=(const QTextOStream &);
+#endif
}; // class QTextOStream =======================================================
diff --git a/WebCore/kwq/qt/qtimer.h b/WebCore/kwq/qt/qtimer.h
index 52e0b25..3a1050d 100644
--- a/WebCore/kwq/qt/qtimer.h
+++ b/WebCore/kwq/qt/qtimer.h
@@ -26,6 +26,10 @@
#ifndef QTIMER_H_
#define QTIMER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
// class QTimer ================================================================
@@ -44,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QTimer();
-
~QTimer();
// member functions --------------------------------------------------------
@@ -55,6 +58,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QTimer(const QTimer &);
QTimer &operator=(const QTimer &);
diff --git a/WebCore/kwq/qt/qtooltip.h b/WebCore/kwq/qt/qtooltip.h
index 5ee206f..e6c745f 100644
--- a/WebCore/kwq/qt/qtooltip.h
+++ b/WebCore/kwq/qt/qtooltip.h
@@ -26,6 +26,10 @@
#ifndef QTOOLTIP_H_
#define QTOOLTIP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qpalette.h"
#include "qwidget.h"
@@ -47,7 +51,10 @@ public:
QToolTip(QWidget *);
- ~QToolTip();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QToolTip() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -56,9 +63,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QToolTip(const QToolTip &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QToolTip &operator=(const QToolTip &);
+#endif
}; // class QToolTip ===========================================================
diff --git a/WebCore/kwq/qt/qvaluelist.h b/WebCore/kwq/qt/qvaluelist.h
index da8a1d4..069f71a 100644
--- a/WebCore/kwq/qt/qvaluelist.h
+++ b/WebCore/kwq/qt/qvaluelist.h
@@ -26,6 +26,10 @@
#ifndef QVALUELIST_H_
#define QVALUELIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QValueListIterator ====================================================
diff --git a/WebCore/kwq/qt/qvariant.h b/WebCore/kwq/qt/qvariant.h
index 279fb8b..54b0cbc 100644
--- a/WebCore/kwq/qt/qvariant.h
+++ b/WebCore/kwq/qt/qvariant.h
@@ -26,6 +26,10 @@
#ifndef QVARIANT_H_
#define QVARIANT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
typedef unsigned int uint;
class QString;
@@ -53,7 +57,6 @@ public:
QVariant(double);
QVariant(const QString &);
QVariant(const QVariant &);
-
~QVariant();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qvector.h b/WebCore/kwq/qt/qvector.h
index 2d4fec3..aabfb11 100644
--- a/WebCore/kwq/qt/qvector.h
+++ b/WebCore/kwq/qt/qvector.h
@@ -26,6 +26,10 @@
#ifndef QVECTOR_H_
#define QVECTOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -47,20 +51,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
QGVector();
-
- virtual ~QGVector();
+ QGVector(const QGVector &);
+ ~QGVector();
// member functions --------------------------------------------------------
+
// operators ---------------------------------------------------------------
+ QGVector &operator=(const QGVector &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QGVector(const QGVector &);
- QGVector &operator=(const QGVector &);
-
}; // class QGVector ===========================================================
@@ -79,7 +81,6 @@ public:
QVector();
QVector(uint);
QVector(const QVector &);
-
~QVector();
// member functions --------------------------------------------------------
diff --git a/WebCore/kwq/qt/qwidget.h b/WebCore/kwq/qt/qwidget.h
index f0c2191..fc6db30 100644
--- a/WebCore/kwq/qt/qwidget.h
+++ b/WebCore/kwq/qt/qwidget.h
@@ -26,6 +26,10 @@
#ifndef QWIDGET_H_
#define QWIDGET_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
#include "qpaintdevice.h"
#include "qpainter.h"
@@ -59,8 +63,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QWidget(QWidget *parent=0, const char *name=0, WFlags f=0);
-
- virtual ~QWidget();
+ ~QWidget();
// member functions --------------------------------------------------------
@@ -120,6 +123,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QWidget(const QWidget &);
QWidget &operator=(const QWidget &);
diff --git a/WebCore/kwq/qt/qxml.h b/WebCore/kwq/qt/qxml.h
index 5935eb0..07d1065 100644
--- a/WebCore/kwq/qt/qxml.h
+++ b/WebCore/kwq/qt/qxml.h
@@ -26,6 +26,10 @@
#ifndef QXML_H_
#define QXML_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class QXmlAttributes ========================================================
@@ -42,7 +46,6 @@ public:
QXmlAttributes();
QXmlAttributes(const QXmlAttributes &);
-
virtual ~QXmlAttributes();
// member functions --------------------------------------------------------
@@ -75,7 +78,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QXmlInputSource();
-
virtual ~QXmlInputSource();
// member functions --------------------------------------------------------
@@ -88,30 +90,295 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlInputSource(const QXmlInputSource &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlInputSource &operator=(const QXmlInputSource &);
+#endif
-}; // class QXmlInputSource =====================================================
+}; // class QXmlInputSource ====================================================
-class QXmlDTDHandler {};
+// class QXmlDTDHandler ========================================================
-class QXmlDeclHandler {};
+class QXmlDTDHandler {
+public:
-class QXmlErrorHandler {};
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
-class QXmlLexicalHandler {};
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlDTDHandler() {}
+#endif
-class QXmlContentHandler {};
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler(const QXmlDTDHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler &operator=(const QXmlDTDHandler &);
+#endif
+
+}; // class QXmlDTDHandler =====================================================
+
+
+// class QXmlDeclHandler ========================================================
+
+class QXmlDeclHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlDeclHandler() {}
+#endif
-class QXmlDefaultHandler :
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler(const QXmlDeclHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler &operator=(const QXmlDeclHandler &);
+#endif
+
+}; // class QXmlDeclHandler =====================================================
+
+
+// class QXmlErrorHandler ========================================================
+
+class QXmlErrorHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlErrorHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler(const QXmlErrorHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler &operator=(const QXmlErrorHandler &);
+#endif
+
+}; // class QXmlErrorHandler =====================================================
+
+
+// class QXmlLexicalHandler ========================================================
+
+class QXmlLexicalHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlLexicalHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler(const QXmlLexicalHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler &operator=(const QXmlLexicalHandler &);
+#endif
+
+}; // class QXmlLexicalHandler =====================================================
+
+
+// class QXmlContentHandler ========================================================
+
+class QXmlContentHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlContentHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler(const QXmlContentHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler &operator=(const QXmlContentHandler &);
+#endif
+
+}; // class QXmlContentHandler =====================================================
+
+
+// class QXmlDefaultHandler ====================================================
+
+class QXmlDefaultHandler :
public QXmlContentHandler,
public QXmlLexicalHandler,
public QXmlErrorHandler,
public QXmlDeclHandler,
public QXmlDTDHandler {
-};
+
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+ QXmlDefaultHandler() {}
+ virtual ~QXmlDefaultHandler();
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDefaultHandler(const QXmlDefaultHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDefaultHandler &operator=(const QXmlDefaultHandler &);
+#endif
+
+}; // class QXmlDefaultHandler =====================================================
// class QXmlSimpleReader ======================================================
@@ -126,8 +393,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QXmlSimpleReader();
-
- ~QXmlSimpleReader();
+ virtual ~QXmlSimpleReader();
// member functions --------------------------------------------------------
@@ -144,9 +410,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlSimpleReader(const QXmlSimpleReader &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlSimpleReader &operator=(const QXmlSimpleReader &);
+#endif
}; // class QXmlSimpleReader ===================================================
@@ -165,7 +440,10 @@ public:
QXmlParseException();
- ~QXmlParseException();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlParseException() {}
+#endif
// member functions --------------------------------------------------------
@@ -179,9 +457,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlParseException(const QXmlParseException &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlParseException &operator=(const QXmlParseException &);
+#endif
}; // class QXmlParseException =================================================
diff --git a/WebCore/src/kwq/KWQButton.h b/WebCore/src/kwq/KWQButton.h
index bfa649c..d62bc57 100644
--- a/WebCore/src/kwq/KWQButton.h
+++ b/WebCore/src/kwq/KWQButton.h
@@ -26,6 +26,10 @@
#ifndef KWQBUTTON_H_
#define KWQBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
#include <qstring.h>
@@ -44,7 +48,6 @@ public:
QButton();
QButton(QWidget *);
-
~QButton();
// member functions --------------------------------------------------------
@@ -59,6 +62,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QButton(const QButton &);
QButton &operator=(const QButton &);
diff --git a/WebCore/src/kwq/KWQCollection.h b/WebCore/src/kwq/KWQCollection.h
index 7f77895..7d8a676 100644
--- a/WebCore/src/kwq/KWQCollection.h
+++ b/WebCore/src/kwq/KWQCollection.h
@@ -26,6 +26,10 @@
#ifndef KWQCOLLECTION_H_
#define KWQCOLLECTION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QCollection ===========================================================
class QCollection {
@@ -43,8 +47,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QCollection();
-
- ~QCollection();
+ virtual ~QCollection();
// member functions --------------------------------------------------------
@@ -60,9 +63,18 @@ protected:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QCollection(const QCollection &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QCollection &operator=(const QCollection &);
+#endif
}; // class QCollection ========================================================
diff --git a/WebCore/src/kwq/KWQCompletion.h b/WebCore/src/kwq/KWQCompletion.h
index cac7c1c..86f6762 100644
--- a/WebCore/src/kwq/KWQCompletion.h
+++ b/WebCore/src/kwq/KWQCompletion.h
@@ -26,12 +26,16 @@
#ifndef KWQCOMPLETION_H_
#define KWQCOMPLETION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qstringlist.h>
-// class QCompletion ===========================================================
+// class KCompletion ===========================================================
-class QCompletion : public QObject {
+class KCompletion : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -42,9 +46,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QCompletion();
-
- ~QCompletion();
+ KCompletion();
+ virtual ~KCompletion();
// member functions --------------------------------------------------------
@@ -56,16 +59,25 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
- QCompletion(const QCompletion &);
- QCompletion &operator=(const QCompletion &);
-}; // class QCompletion ========================================================
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ KCompletion(const KCompletion &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ KCompletion &operator=(const KCompletion &);
+#endif
+}; // class KCompletion ========================================================
-// class QCompletionBase =======================================================
-class QCompletionBase {
+// class KCompletionBase =======================================================
+
+class KCompletionBase {
public:
// structs -----------------------------------------------------------------
@@ -76,13 +88,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QCompletionBase();
-
- ~QCompletionBase();
+ KCompletionBase();
+ virtual ~KCompletionBase();
// member functions --------------------------------------------------------
- QCompletion *completionObject(bool hsig = true);
+ KCompletion *completionObject(bool hsig = true);
// operators ---------------------------------------------------------------
@@ -90,11 +101,20 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
- QCompletionBase(const QCompletionBase &);
- QCompletionBase &operator=(const QCompletionBase &);
-}; // class QCompletionBase ====================================================
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ KCompletionBase(const KCompletionBase &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ KCompletionBase &operator=(const KCompletionBase &);
+#endif
+
+}; // class KCompletionBase ====================================================
#endif
diff --git a/WebCore/src/kwq/KWQDataStream.h b/WebCore/src/kwq/KWQDataStream.h
index be0dded..80db5aa 100644
--- a/WebCore/src/kwq/KWQDataStream.h
+++ b/WebCore/src/kwq/KWQDataStream.h
@@ -26,6 +26,10 @@
#ifndef KWQDATASTREAM_H_
#define KWQDATASTREAM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qarray.h"
#include "qstring.h"
#include "qcstring.h"
@@ -51,6 +55,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
+ QDataStream();
QDataStream(QByteArray, int);
virtual ~QDataStream();
@@ -69,6 +74,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QDataStream(const QDataStream &);
QDataStream &operator=(const QDataStream &);
diff --git a/WebCore/src/kwq/KWQDef.h b/WebCore/src/kwq/KWQDef.h
index b4a79cf..bef10b6 100644
--- a/WebCore/src/kwq/KWQDef.h
+++ b/WebCore/src/kwq/KWQDef.h
@@ -26,6 +26,10 @@
#ifndef KWQDEF_H_
#define KWQDEF_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned uint;
diff --git a/WebCore/src/kwq/KWQFrame.h b/WebCore/src/kwq/KWQFrame.h
index ec23f56..e18d5fb 100644
--- a/WebCore/src/kwq/KWQFrame.h
+++ b/WebCore/src/kwq/KWQFrame.h
@@ -26,6 +26,10 @@
#ifndef KWQFRAME_H_
#define KWQFRAME_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
// class QFrame ================================================================
@@ -49,6 +53,11 @@ public:
QFrame();
QFrame(QWidget *parent);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QFrame() {}
+#endif
+
// member functions --------------------------------------------------------
virtual void setFrameStyle(int);
@@ -61,6 +70,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QFrame(const QFrame &);
QFrame &operator=(const QFrame &);
diff --git a/WebCore/src/kwq/KWQIcon.h b/WebCore/src/kwq/KWQIcon.h
index 42bfe25..f487c33 100644
--- a/WebCore/src/kwq/KWQIcon.h
+++ b/WebCore/src/kwq/KWQIcon.h
@@ -26,6 +26,10 @@
#ifndef KWQICON_H_
#define KWQICON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class KIcon =================================================================
class KIcon {
@@ -45,7 +49,10 @@ public:
KIcon();
- ~KIcon();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~KIcon() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -54,9 +61,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KIcon(const KIcon &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KIcon &operator=(const KIcon &);
+#endif
}; // class KIcon ==============================================================
diff --git a/WebCore/src/kwq/KWQListBox.h b/WebCore/src/kwq/KWQListBox.h
index b30eb6a..8400281 100644
--- a/WebCore/src/kwq/KWQListBox.h
+++ b/WebCore/src/kwq/KWQListBox.h
@@ -26,6 +26,10 @@
#ifndef KWQLISTBOX_H_
#define KWQLISTBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qscrollview.h>
#include <qstring.h>
@@ -50,7 +54,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QListBox();
-
~QListBox();
// member functions --------------------------------------------------------
@@ -72,6 +75,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QListBox(const QListBox &);
QListBox &operator=(const QListBox &);
@@ -92,8 +96,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QListBoxItem();
-
- ~QListBoxItem();
+ virtual ~QListBoxItem();
// member functions --------------------------------------------------------
@@ -111,6 +114,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QListBoxItem(const QListBoxItem &);
QListBoxItem &operator=(const QListBoxItem &);
@@ -130,8 +134,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QListBoxText(const QString & text=QString::null);
-
+ QListBoxText(const QString &text=QString::null);
~QListBoxText();
// member functions --------------------------------------------------------
@@ -142,6 +145,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QListBoxText(const QListBoxText &);
QListBoxText &operator=(const QListBoxText &);
diff --git a/WebCore/src/kwq/KWQScrollBar.h b/WebCore/src/kwq/KWQScrollBar.h
index e3c8c92..d3be8e0 100644
--- a/WebCore/src/kwq/KWQScrollBar.h
+++ b/WebCore/src/kwq/KWQScrollBar.h
@@ -26,6 +26,10 @@
#ifndef KWQSCROLLVIEW_H_
#define KWQSCROLLVIEW_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
#include <qpalette.h>
@@ -42,9 +46,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QScrollBar();
+ QScrollBar(QWidget *);
- ~QScrollBar();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QScrollBar() {}
+#endif
// member functions --------------------------------------------------------
@@ -56,7 +63,7 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QScrollBar(const QScrollBar &);
QScrollBar &operator=(const QScrollBar &);
diff --git a/WebCore/src/kwq/KWQStrList.h b/WebCore/src/kwq/KWQStrList.h
index 436f45d..69c5eb5 100644
--- a/WebCore/src/kwq/KWQStrList.h
+++ b/WebCore/src/kwq/KWQStrList.h
@@ -26,6 +26,10 @@
#ifndef KWQSTRLIST_H_
#define KWQSTRLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <qlist.h>
@@ -43,20 +47,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
QStrList();
-
+ QStrList(const QStrList &);
~QStrList();
// member functions --------------------------------------------------------
+
// operators ---------------------------------------------------------------
+ QStrList &operator=(const QStrList &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QStrList(const QStrList &);
- QStrList &operator=(const QStrList &);
-
}; // class QStrList ===========================================================
#endif
diff --git a/WebCore/src/kwq/KWQStyle.h b/WebCore/src/kwq/KWQStyle.h
index 2a14bb5..9eb6329 100644
--- a/WebCore/src/kwq/KWQStyle.h
+++ b/WebCore/src/kwq/KWQStyle.h
@@ -26,6 +26,10 @@
#ifndef KWQSTYLE_H_
#define KWQSTYLE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qsize.h>
@@ -42,8 +46,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QStyle();
-
- ~QStyle();
+ virtual ~QStyle();
// member functions --------------------------------------------------------
@@ -57,7 +60,7 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QStyle(const QStyle &);
QStyle &operator=(const QStyle &);
diff --git a/WebCore/src/kwq/dcop/dcopclient.h b/WebCore/src/kwq/dcop/dcopclient.h
index 8e0d76d..6169beb 100644
--- a/WebCore/src/kwq/dcop/dcopclient.h
+++ b/WebCore/src/kwq/dcop/dcopclient.h
@@ -26,6 +26,10 @@
#ifndef DCOPCLIENT_H_
#define DCOPCLIENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qcstring.h>
diff --git a/WebCore/src/kwq/kdecore/kapp.h b/WebCore/src/kwq/kdecore/kapp.h
index dca9736..743108c 100644
--- a/WebCore/src/kwq/kdecore/kapp.h
+++ b/WebCore/src/kwq/kdecore/kapp.h
@@ -26,6 +26,10 @@
#ifndef KAPP_H_
#define KAPP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kglobal.h>
#include <kglobalsettings.h>
#include <dcopclient.h>
diff --git a/WebCore/src/kwq/kdecore/kcharsets.h b/WebCore/src/kwq/kdecore/kcharsets.h
index a489c07..d7e6770 100644
--- a/WebCore/src/kwq/kdecore/kcharsets.h
+++ b/WebCore/src/kwq/kdecore/kcharsets.h
@@ -26,6 +26,10 @@
#ifndef KCHARSETS_H_
#define KCHARSETS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qfont.h>
class QString;
diff --git a/WebCore/src/kwq/kdecore/kcmdlineargs.h b/WebCore/src/kwq/kdecore/kcmdlineargs.h
index 46ab319..1fc1f1d 100644
--- a/WebCore/src/kwq/kdecore/kcmdlineargs.h
+++ b/WebCore/src/kwq/kdecore/kcmdlineargs.h
@@ -26,4 +26,8 @@
#ifndef KCMDLINEARGS_H_
#define KCMDLINEARGS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/src/kwq/kdecore/kconfig.h b/WebCore/src/kwq/kdecore/kconfig.h
index 6363563..939ee71 100644
--- a/WebCore/src/kwq/kdecore/kconfig.h
+++ b/WebCore/src/kwq/kdecore/kconfig.h
@@ -26,6 +26,10 @@
#ifndef KCONFIG_H_
#define KCONFIG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qcolor.h>
#include <qfont.h>
diff --git a/WebCore/src/kwq/kdecore/kdebug.h b/WebCore/src/kwq/kdecore/kdebug.h
index 139ae65..b1e31f4 100644
--- a/WebCore/src/kwq/kdecore/kdebug.h
+++ b/WebCore/src/kwq/kdecore/kdebug.h
@@ -26,6 +26,10 @@
#ifndef KDEBUG_H_
#define KDEBUG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
class kdbgstream;
diff --git a/WebCore/src/kwq/kdecore/kglobal.h b/WebCore/src/kwq/kdecore/kglobal.h
index a56df0a..4742402 100644
--- a/WebCore/src/kwq/kdecore/kglobal.h
+++ b/WebCore/src/kwq/kdecore/kglobal.h
@@ -26,6 +26,10 @@
#ifndef KGLOBAL_H_
#define KGLOBAL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <kinstance.h>
@@ -59,14 +63,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
- KGlobal();
+ KGlobal() {}
#endif
// add no-op destructor
#ifdef _KWQ_PEDANTIC_
- ~KGlobal();
+ ~KGlobal() {}
#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/kdecore/kglobalsettings.h b/WebCore/src/kwq/kdecore/kglobalsettings.h
index f28e2a2..8478383 100644
--- a/WebCore/src/kwq/kdecore/kglobalsettings.h
+++ b/WebCore/src/kwq/kdecore/kglobalsettings.h
@@ -26,6 +26,10 @@
#ifndef KGLOBALSETTINGS_H_
#define KGLOBALSETTINGS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QFont;
// class KGlobalSettings =======================================================
@@ -48,7 +52,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KGlobalSettings() {}
#endif
diff --git a/WebCore/src/kwq/kdecore/kiconloader.h b/WebCore/src/kwq/kdecore/kiconloader.h
index 9ca3b40..48096e6 100644
--- a/WebCore/src/kwq/kdecore/kiconloader.h
+++ b/WebCore/src/kwq/kdecore/kiconloader.h
@@ -26,6 +26,10 @@
#ifndef KICONLOADER_H_
#define KICONLOADER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpixmap.h>
#include <qstring.h>
#include <kinstance.h>
diff --git a/WebCore/src/kwq/kdecore/kinstance.h b/WebCore/src/kwq/kdecore/kinstance.h
index bf9ce7b..abffcfd 100644
--- a/WebCore/src/kwq/kdecore/kinstance.h
+++ b/WebCore/src/kwq/kdecore/kinstance.h
@@ -26,6 +26,10 @@
#ifndef KINSTANCE_H_
#define KINSTANCE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qcstring.h>
class KIconLoader;
diff --git a/WebCore/src/kwq/kdecore/klocale.h b/WebCore/src/kwq/kdecore/klocale.h
index fa5efd5..2117843 100644
--- a/WebCore/src/kwq/kdecore/klocale.h
+++ b/WebCore/src/kwq/kdecore/klocale.h
@@ -26,6 +26,10 @@
#ifndef KLOCALE_H_
#define KLOCALE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
QString i18n(const char* text);
diff --git a/WebCore/src/kwq/kdecore/kprocess.h b/WebCore/src/kwq/kdecore/kprocess.h
index 55f6326..a4146db 100644
--- a/WebCore/src/kwq/kdecore/kprocess.h
+++ b/WebCore/src/kwq/kdecore/kprocess.h
@@ -26,6 +26,10 @@
#ifndef KPROCESS_H_
#define KPROCESS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <signal.h>
#include <qobject.h>
diff --git a/WebCore/src/kwq/kdecore/ksimpleconfig.h b/WebCore/src/kwq/kdecore/ksimpleconfig.h
index 5a940d7..a6bc792 100644
--- a/WebCore/src/kwq/kdecore/ksimpleconfig.h
+++ b/WebCore/src/kwq/kdecore/ksimpleconfig.h
@@ -26,4 +26,8 @@
#ifndef KSIMPLECONFIG_H_
#define KSIMPLECONFIG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/src/kwq/kdecore/kstaticdeleter.h b/WebCore/src/kwq/kdecore/kstaticdeleter.h
index 187f6ab..0997cfb 100644
--- a/WebCore/src/kwq/kdecore/kstaticdeleter.h
+++ b/WebCore/src/kwq/kdecore/kstaticdeleter.h
@@ -26,6 +26,10 @@
#ifndef KSTATICDELETER_H_
#define KSTATICDELETER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class KStaticDeleter ========================================================
template <class T> class KStaticDeleter {
diff --git a/WebCore/src/kwq/kdecore/kstddirs.h b/WebCore/src/kwq/kdecore/kstddirs.h
index ec0d9fa..daa6787 100644
--- a/WebCore/src/kwq/kdecore/kstddirs.h
+++ b/WebCore/src/kwq/kdecore/kstddirs.h
@@ -26,6 +26,10 @@
#ifndef KSTDDIRS_H_
#define KSTDDIRS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include "kglobal.h"
diff --git a/WebCore/src/kwq/kdecore/kstringhandler.h b/WebCore/src/kwq/kdecore/kstringhandler.h
index 95caba6..0f0ce7e 100644
--- a/WebCore/src/kwq/kdecore/kstringhandler.h
+++ b/WebCore/src/kwq/kdecore/kstringhandler.h
@@ -26,6 +26,10 @@
#ifndef KSTRINGHANDLER_H_
#define KSTRINGHANDLER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
// class KStringHandler ========================================================
@@ -44,7 +48,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KStringHandler() {}
#endif
diff --git a/WebCore/src/kwq/kdecore/kurl.h b/WebCore/src/kwq/kdecore/kurl.h
index 34950dc..8a5533d 100644
--- a/WebCore/src/kwq/kdecore/kurl.h
+++ b/WebCore/src/kwq/kdecore/kurl.h
@@ -26,6 +26,10 @@
#ifndef KURL_H_
#define KURL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class KURL ==================================================================
diff --git a/WebCore/src/kwq/kdecore/kwin.h b/WebCore/src/kwq/kdecore/kwin.h
index 072b29f..44f7640 100644
--- a/WebCore/src/kwq/kdecore/kwin.h
+++ b/WebCore/src/kwq/kdecore/kwin.h
@@ -26,6 +26,10 @@
#ifndef KWIN_H_
#define KWIN_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qrect.h>
#include <qstring.h>
@@ -53,7 +57,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KWin() {}
#endif
diff --git a/WebCore/src/kwq/kdecore/kwinmodule.h b/WebCore/src/kwq/kdecore/kwinmodule.h
index 341752f..12922d6 100644
--- a/WebCore/src/kwq/kdecore/kwinmodule.h
+++ b/WebCore/src/kwq/kdecore/kwinmodule.h
@@ -26,6 +26,10 @@
#ifndef KWINMODULE_H_
#define KWINMODULE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
class QRect;
diff --git a/WebCore/src/kwq/kdeui/kaction.h b/WebCore/src/kwq/kdeui/kaction.h
index 1e06c54..81e31c5 100644
--- a/WebCore/src/kwq/kdeui/kaction.h
+++ b/WebCore/src/kwq/kdeui/kaction.h
@@ -26,6 +26,10 @@
#ifndef KACTION_H_
#define KACTION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpopupmenu.h>
// class KAction ===============================================================
diff --git a/WebCore/src/kwq/kdeui/kcombobox.h b/WebCore/src/kwq/kdeui/kcombobox.h
index e13018f..406b058 100644
--- a/WebCore/src/kwq/kdeui/kcombobox.h
+++ b/WebCore/src/kwq/kdeui/kcombobox.h
@@ -26,13 +26,17 @@
#ifndef KCOMBOBOX_H_
#define KCOMBOBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qcombobox.h>
#include <KWQCompletion.h>
// class KComboBox =============================================================
-class KComboBox : public QComboBox, public QCompletionBase {
+class KComboBox : public QComboBox, public KCompletionBase {
public:
// structs -----------------------------------------------------------------
diff --git a/WebCore/src/kwq/kdeui/kcompletionbox.h b/WebCore/src/kwq/kdeui/kcompletionbox.h
index 0d29237..c95a18c 100644
--- a/WebCore/src/kwq/kdeui/kcompletionbox.h
+++ b/WebCore/src/kwq/kdeui/kcompletionbox.h
@@ -26,6 +26,10 @@
#ifndef KCOMPLETIONBOX_H_
#define KCOMPLETIONBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "klistbox.h"
// class KCompletionBox ========================================================
diff --git a/WebCore/src/kwq/kdeui/kcursor.h b/WebCore/src/kwq/kdeui/kcursor.h
index 19acee2..5edeae3 100644
--- a/WebCore/src/kwq/kdeui/kcursor.h
+++ b/WebCore/src/kwq/kdeui/kcursor.h
@@ -26,6 +26,10 @@
#ifndef KCURSOR_H_
#define KCURSOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
// class KCursor ===============================================================
diff --git a/WebCore/src/kwq/kdeui/keditcl.h b/WebCore/src/kwq/kdeui/keditcl.h
index 9022359..9b21ea0 100644
--- a/WebCore/src/kwq/kdeui/keditcl.h
+++ b/WebCore/src/kwq/kdeui/keditcl.h
@@ -26,6 +26,10 @@
#ifndef KEDITCL_H_
#define KEDITCL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
#include <KWQFrame.h>
#include <KWQScrollBar.h>
diff --git a/WebCore/src/kwq/kdeui/klineedit.h b/WebCore/src/kwq/kdeui/klineedit.h
index 320c1c4..bf92cb7 100644
--- a/WebCore/src/kwq/kdeui/klineedit.h
+++ b/WebCore/src/kwq/kdeui/klineedit.h
@@ -26,6 +26,10 @@
#ifndef KLINEEDIT_H_
#define KLINEEDIT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qlineedit.h>
#include <KWQCompletion.h>
@@ -34,7 +38,7 @@
// class __class_name__ ========================================================
-class KLineEdit : public QLineEdit, public QCompletionBase {
+class KLineEdit : public QLineEdit, public KCompletionBase {
public:
// structs -----------------------------------------------------------------
diff --git a/WebCore/src/kwq/kdeui/klistbox.h b/WebCore/src/kwq/kdeui/klistbox.h
index af27e08..07c8b4b 100644
--- a/WebCore/src/kwq/kdeui/klistbox.h
+++ b/WebCore/src/kwq/kdeui/klistbox.h
@@ -26,6 +26,10 @@
#ifndef KLISTBOX_H_
#define KLISTBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQListBox.h>
#include <qwidget.h>
diff --git a/WebCore/src/kwq/kdeui/kmessagebox.h b/WebCore/src/kwq/kdeui/kmessagebox.h
index 686167b..ca94485 100644
--- a/WebCore/src/kwq/kdeui/kmessagebox.h
+++ b/WebCore/src/kwq/kdeui/kmessagebox.h
@@ -26,6 +26,10 @@
#ifndef KMESSAGEBOX_H_
#define KMESSAGEBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qwidget.h>
#include <qstring.h>
@@ -64,7 +68,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
-// add no-op constructor
+// add no-arg constructor
#ifdef _KWQ_PEDANTIC_
KMessageBox() {}
#endif
diff --git a/WebCore/src/kwq/kfile/kfiledialog.h b/WebCore/src/kwq/kfile/kfiledialog.h
index b0e1221..607c05e 100644
--- a/WebCore/src/kwq/kfile/kfiledialog.h
+++ b/WebCore/src/kwq/kfile/kfiledialog.h
@@ -26,6 +26,10 @@
#ifndef KFILEDIALOG_H_
#define KFILEDIALOG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstring.h>
#include <qwidget.h>
diff --git a/WebCore/src/kwq/kio/job.h b/WebCore/src/kwq/kio/job.h
index 4c04a54..8fbe161 100644
--- a/WebCore/src/kwq/kio/job.h
+++ b/WebCore/src/kwq/kio/job.h
@@ -26,6 +26,10 @@
#ifndef JOB_H_
#define JOB_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kurl.h>
#include "jobclasses.h"
diff --git a/WebCore/src/kwq/kio/jobclasses.h b/WebCore/src/kwq/kio/jobclasses.h
index 94dbf1c..e3dcd65 100644
--- a/WebCore/src/kwq/kio/jobclasses.h
+++ b/WebCore/src/kwq/kio/jobclasses.h
@@ -26,6 +26,10 @@
#ifndef JOBCLASSES_H_
#define JOBCLASSES_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qstring.h>
@@ -43,8 +47,11 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
- Job();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ Job() {}
+#endif
+
virtual ~Job();
// member functions --------------------------------------------------------
@@ -60,9 +67,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Job(const Job &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Job &operator=(const Job &);
+#endif
}; // class Job ================================================================
@@ -80,9 +96,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- SimpleJob();
-
- virtual ~SimpleJob();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ SimpleJob() {}
+#endif
+
+ ~SimpleJob();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -91,9 +110,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
SimpleJob(const SimpleJob &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
SimpleJob &operator=(const SimpleJob &);
+#endif
}; // class SimpleJob ==========================================================
@@ -111,9 +139,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- TransferJob();
-
- virtual ~TransferJob();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ TransferJob() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~TransferJob() {}
+#endif
// member functions --------------------------------------------------------
@@ -126,9 +160,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
TransferJob(const TransferJob &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
TransferJob &operator=(const TransferJob &);
+#endif
}; // class TransferJob ========================================================
diff --git a/WebCore/src/kwq/kio/kfileitem.h b/WebCore/src/kwq/kio/kfileitem.h
index e749c3e..25b38b1 100644
--- a/WebCore/src/kwq/kio/kfileitem.h
+++ b/WebCore/src/kwq/kio/kfileitem.h
@@ -26,6 +26,10 @@
#ifndef KFILEITEM_H_
#define KFILEITEM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <netaccess.h>
// class KFileItem =============================================================
@@ -44,6 +48,8 @@ public:
KFileItem(const KIO::UDSEntry &, const KURL &, bool foo=false,
bool bar=false);
+ virtual ~KFileItem();
+
// member functions --------------------------------------------------------
bool isDir() const;
@@ -54,9 +60,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KFileItem(const KFileItem &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KFileItem &operator=(const KFileItem &);
+#endif
}; // class KFileItem ==========================================================
diff --git a/WebCore/src/kwq/kio/kimageio.h b/WebCore/src/kwq/kio/kimageio.h
index d428a01..843ed56 100644
--- a/WebCore/src/kwq/kio/kimageio.h
+++ b/WebCore/src/kwq/kio/kimageio.h
@@ -26,6 +26,10 @@
#ifndef KIMAGEIO_H_
#define KIMAGEIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qstringlist.h>
// class KImageIO ==============================================================
@@ -48,10 +52,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KImageIO();
-
- ~KImageIO();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KImageIO() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~KImageIO() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -59,9 +69,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KImageIO(const KImageIO &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KImageIO &operator=(const KImageIO &);
+#endif
}; // class KImageIO ===========================================================
diff --git a/WebCore/src/kwq/kio/kmimetype.h b/WebCore/src/kwq/kio/kmimetype.h
index 0b3f004..685cef1 100644
--- a/WebCore/src/kwq/kio/kmimetype.h
+++ b/WebCore/src/kwq/kio/kmimetype.h
@@ -26,6 +26,10 @@
#ifndef KMIMETYPE_H_
#define KMIMETYPE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kdecore/kglobal.h>
#include <kdecore/kurl.h>
@@ -46,10 +50,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
KSharedPtr();
-
KSharedPtr(const KSharedPtr &);
-
- virtual ~KSharedPtr();
+ ~KSharedPtr();
// member functions --------------------------------------------------------
@@ -84,9 +86,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KMimeType();
-
- ~KMimeType();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KMimeType() {}
+#endif
+
+ virtual ~KMimeType();
// member functions --------------------------------------------------------
@@ -98,9 +103,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KMimeType(const KMimeType &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KMimeType &operator=(const KMimeType &);
+#endif
}; // class KMimeType ==========================================================
diff --git a/WebCore/src/kwq/kio/kprotocolmanager.h b/WebCore/src/kwq/kio/kprotocolmanager.h
index e0f81b6..c9f5cdf 100644
--- a/WebCore/src/kwq/kio/kprotocolmanager.h
+++ b/WebCore/src/kwq/kio/kprotocolmanager.h
@@ -26,6 +26,10 @@
#ifndef KPROTOCOLMANAGER_H_
#define KPROTOCOLMANAGER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class KProtocolManager ======================================================
@@ -46,9 +50,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- KProtocolManager();
-
- ~KProtocolManager();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ KProtocolManager() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~KProtocolManager() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -57,9 +67,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KProtocolManager(const KProtocolManager &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KProtocolManager &operator=(const KProtocolManager &);
+#endif
}; // class KProtocolManager ===================================================
diff --git a/WebCore/src/kwq/kio/netaccess.h b/WebCore/src/kwq/kio/netaccess.h
index c663cad..425a65d 100644
--- a/WebCore/src/kwq/kio/netaccess.h
+++ b/WebCore/src/kwq/kio/netaccess.h
@@ -26,6 +26,10 @@
#ifndef NETACCESS_H_
#define NETACCESS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qvaluelist.h>
#include <kurl.h>
@@ -49,10 +53,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- UDSAtom();
-
- ~UDSAtom();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ UDSAtom() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~UDSAtom() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -60,9 +70,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
UDSAtom(const UDSAtom &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
UDSAtom &operator=(const UDSAtom &);
+#endif
}; // class UDSAtom ============================================================
@@ -86,10 +105,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- NetAccess();
-
- ~NetAccess();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ NetAccess() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~NetAccess() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -97,9 +122,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
NetAccess(const NetAccess &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
NetAccess &operator=(const NetAccess &);
+#endif
}; // class NetAccess ==========================================================
diff --git a/WebCore/src/kwq/kio/scheduler.h b/WebCore/src/kwq/kio/scheduler.h
index f3e90b0..113be16 100644
--- a/WebCore/src/kwq/kio/scheduler.h
+++ b/WebCore/src/kwq/kio/scheduler.h
@@ -26,6 +26,12 @@
#ifndef SCHEDULER_H_
#define SCHEDULER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <qobject.h>
+
#include "job.h"
#include "jobclasses.h"
@@ -33,7 +39,7 @@ namespace KIO {
// class Scheduler =============================================================
-class Scheduler {
+class Scheduler : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -47,8 +53,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- Scheduler();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ Scheduler() {}
+#endif
+
~Scheduler();
// member functions --------------------------------------------------------
@@ -58,9 +67,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Scheduler(const Scheduler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Scheduler &operator=(const Scheduler &);
+#endif
}; // class Scheduler ==========================================================
diff --git a/WebCore/src/kwq/kparts/browserextension.h b/WebCore/src/kwq/kparts/browserextension.h
index b90bff5..ca2a80b 100644
--- a/WebCore/src/kwq/kparts/browserextension.h
+++ b/WebCore/src/kwq/kparts/browserextension.h
@@ -26,6 +26,10 @@
#ifndef BROWSEREXTENSION_H_
#define BROWSEREXTENSION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qpoint.h>
#include <qevent.h>
#include <KWQDataStream.h>
@@ -49,7 +53,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
KXMLGUIClient();
-
~KXMLGUIClient();
// member functions --------------------------------------------------------
@@ -59,21 +62,43 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
KXMLGUIClient(const KXMLGUIClient &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
KXMLGUIClient &operator=(const KXMLGUIClient &);
+#endif
}; // class KXMLGUIClient ======================================================
namespace KParts {
+// struct URLArgs ==============================================================
+
struct URLArgs {
+
QString frameName;
QString serviceType;
-};
+
+ URLArgs();
+ URLArgs( const URLArgs &);
+ URLArgs &operator=(const URLArgs &);
+ virtual ~URLArgs();
+
+}; // struct URLArgs ===========================================================
+
+
+// struct WindowArgs ===========================================================
struct WindowArgs {
+
int x;
int y;
int width;
@@ -83,11 +108,17 @@ struct WindowArgs {
bool toolBarsVisible;
bool resizable;
bool fullscreen;
-};
+
+ WindowArgs();
+ WindowArgs(const WindowArgs &);
+ WindowArgs &operator=(const WindowArgs &);
+
+}; // struct WindowArgs ========================================================
+
// class BrowserExtension ======================================================
-class BrowserExtension {
+class BrowserExtension : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -98,9 +129,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- BrowserExtension();
-
- ~BrowserExtension();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ BrowserExtension() {}
+#endif
+
+ virtual ~BrowserExtension();
// member functions --------------------------------------------------------
@@ -120,16 +154,25 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserExtension(const BrowserExtension &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserExtension &operator=(const BrowserExtension &);
+#endif
}; // class BrowserExtension ===================================================
// class BrowserHostExtension ==================================================
-class BrowserHostExtension {
+class BrowserHostExtension : public QObject {
public:
// structs -----------------------------------------------------------------
@@ -141,7 +184,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
BrowserHostExtension();
- ~BrowserHostExtension();
+ virtual ~BrowserHostExtension();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -150,9 +193,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserHostExtension(const BrowserHostExtension &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserHostExtension &operator=(const BrowserHostExtension &);
+#endif
}; // class BrowserHostExtension ===============================================
diff --git a/WebCore/src/kwq/kparts/browserinterface.h b/WebCore/src/kwq/kparts/browserinterface.h
index 8e38a5d..e8d369e 100644
--- a/WebCore/src/kwq/kparts/browserinterface.h
+++ b/WebCore/src/kwq/kparts/browserinterface.h
@@ -26,6 +26,10 @@
#ifndef BROWSERINTERFACE_H_
#define BROWSERINTERFACE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
#include <qvariant.h>
@@ -44,9 +48,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- BrowserInterface(QObject *parent, const char *name = 0);
-
- ~BrowserInterface();
+ BrowserInterface(QObject *parent, const char *name=0);
+ virtual ~BrowserInterface();
// member functions --------------------------------------------------------
@@ -58,9 +61,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
BrowserInterface(const BrowserInterface &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
BrowserInterface &operator=(const BrowserInterface &);
+#endif
}; // class BrowserInterface ===================================================
diff --git a/WebCore/src/kwq/kparts/event.h b/WebCore/src/kwq/kparts/event.h
index 2ce1eeb..f15c2ac 100644
--- a/WebCore/src/kwq/kparts/event.h
+++ b/WebCore/src/kwq/kparts/event.h
@@ -26,6 +26,10 @@
#ifndef EVENT_H_
#define EVENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qevent.h>
class QPainter;
@@ -50,7 +54,10 @@ public:
Event(const char *);
- virtual ~Event();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~Event() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -59,9 +66,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Event(const Event &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Event &operator=(const Event &);
+#endif
}; // class Event ==============================================================
diff --git a/WebCore/src/kwq/kparts/factory.h b/WebCore/src/kwq/kparts/factory.h
index c019da5..d5a6c84 100644
--- a/WebCore/src/kwq/kparts/factory.h
+++ b/WebCore/src/kwq/kparts/factory.h
@@ -26,6 +26,10 @@
#ifndef FACTORY_H_
#define FACTORY_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "part.h"
namespace KParts {
@@ -44,8 +48,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
Factory();
-
- ~Factory();
+ virtual ~Factory();
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -54,9 +57,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Factory(const Factory &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Factory &operator=(const Factory &);
+#endif
}; // class Factory ============================================================
diff --git a/WebCore/src/kwq/kparts/historyprovider.h b/WebCore/src/kwq/kparts/historyprovider.h
index edbcdb7..aeaf5d9 100644
--- a/WebCore/src/kwq/kparts/historyprovider.h
+++ b/WebCore/src/kwq/kparts/historyprovider.h
@@ -26,6 +26,10 @@
#ifndef HISTORYPROVIDER_H_
#define HISTORYPROVIDER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <qobject.h>
namespace KParts {
@@ -47,8 +51,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
HistoryProvider();
-
- ~HistoryProvider();
+ virtual ~HistoryProvider();
// member functions --------------------------------------------------------
@@ -60,9 +63,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
HistoryProvider(const HistoryProvider &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
HistoryProvider &operator=(const HistoryProvider &);
+#endif
}; // class HistoryProvider ====================================================
diff --git a/WebCore/src/kwq/kparts/part.h b/WebCore/src/kwq/kparts/part.h
index 52334b6..6a2381b 100644
--- a/WebCore/src/kwq/kparts/part.h
+++ b/WebCore/src/kwq/kparts/part.h
@@ -26,6 +26,10 @@
#ifndef PART_H_
#define PART_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <kurl.h>
#include <qobject.h>
#include <qvariant.h>
@@ -58,8 +62,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
Part();
-
- ~Part();
+ virtual ~Part();
// member functions --------------------------------------------------------
@@ -72,9 +75,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Part(const Part &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Part &operator=(const Part &);
+#endif
}; // class Part ===============================================================
@@ -93,8 +105,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
ReadOnlyPart();
-
- ~ReadOnlyPart();
+ virtual ~ReadOnlyPart();
// member functions --------------------------------------------------------
@@ -106,9 +117,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
ReadOnlyPart(const ReadOnlyPart &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
ReadOnlyPart &operator=(const ReadOnlyPart &);
+#endif
}; // class ReadOnlyPart =======================================================
@@ -126,10 +146,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- GUIActivateEvent();
-
- ~GUIActivateEvent();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ GUIActivateEvent() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~GUIActivateEvent() {}
+#endif
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -137,9 +163,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
GUIActivateEvent(const GUIActivateEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
GUIActivateEvent &operator=(const GUIActivateEvent &);
+#endif
}; // class GUIActivateEvent ===================================================
diff --git a/WebCore/src/kwq/qt/qapplication.h b/WebCore/src/kwq/qt/qapplication.h
index 1775340..9970059 100644
--- a/WebCore/src/kwq/qt/qapplication.h
+++ b/WebCore/src/kwq/qt/qapplication.h
@@ -26,6 +26,10 @@
#ifndef QAPPLICATION_H_
#define QAPPLICATION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qpalette.h"
#include "qsize.h"
@@ -51,7 +55,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QApplication();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QApplication() {}
+#endif
+
+ QApplication( int &argc, char **argv);
virtual ~QApplication();
// member functions --------------------------------------------------------
@@ -63,6 +72,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QApplication(const QApplication &);
QApplication &operator=(const QApplication &);
diff --git a/WebCore/src/kwq/qt/qarray.h b/WebCore/src/kwq/qt/qarray.h
index eba6a2f..163cd93 100644
--- a/WebCore/src/kwq/qt/qarray.h
+++ b/WebCore/src/kwq/qt/qarray.h
@@ -26,6 +26,10 @@
#ifndef QARRAY_H_
#define QARRAY_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QArray ================================================================
@@ -40,13 +44,10 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QArray();
+ QArray() {}
QArray(int);
QArray(const QArray<T> &);
-
- QArray<T> &operator=(const QArray<T> &);
-
- ~QArray();
+ ~QArray() {}
// member functions --------------------------------------------------------
@@ -60,6 +61,7 @@ public:
// operators ---------------------------------------------------------------
+ QArray<T> &operator=(const QArray<T> &);
T &operator[](int) const;
bool operator==(const QArray<T> &);
bool operator!=(const QArray<T> &);
diff --git a/WebCore/src/kwq/qt/qasyncimageio.h b/WebCore/src/kwq/qt/qasyncimageio.h
index 94d018b..8eca5b9 100644
--- a/WebCore/src/kwq/qt/qasyncimageio.h
+++ b/WebCore/src/kwq/qt/qasyncimageio.h
@@ -26,6 +26,10 @@
#ifndef QASYNCIMAGEIO_H_
#define QASYNCIMAGEIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// for memset
#include <string.h>
@@ -51,9 +55,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageConsumer();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageConsumer() {}
+#endif
- ~QImageConsumer();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QImageConsumer() {}
+#endif
// member functions --------------------------------------------------------
@@ -67,9 +77,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageConsumer(const QImageConsumer &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageConsumer &operator=(const QImageConsumer &);
+#endif
}; // end class QImageConsumer
@@ -91,8 +110,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageDecoder();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageDecoder() {}
+#endif
+ QImageDecoder(QImageConsumer *);
~QImageDecoder();
// member functions --------------------------------------------------------
@@ -102,9 +125,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageDecoder(const QImageDecoder &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageDecoder &operator=(const QImageDecoder &);
+#endif
}; // end class QImageDecoder
@@ -123,7 +155,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageFormat();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageFormat() {}
+#endif
+
virtual ~QImageFormat();
// member functions --------------------------------------------------------
@@ -136,9 +172,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageFormat(const QImageFormat &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageFormat &operator=(const QImageFormat &);
+#endif
}; // end class QImageFormat
@@ -157,7 +202,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QImageFormatType();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QImageFormatType() {}
+#endif
+
virtual ~QImageFormatType();
// member functions --------------------------------------------------------
@@ -170,9 +219,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QImageFormatType(const QImageFormatType &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QImageFormatType &operator=(const QImageFormatType &);
+#endif
}; // end class QImageFormatType
diff --git a/WebCore/src/kwq/qt/qasyncio.h b/WebCore/src/kwq/qt/qasyncio.h
index be558eb..9eeeb7b 100644
--- a/WebCore/src/kwq/qt/qasyncio.h
+++ b/WebCore/src/kwq/qt/qasyncio.h
@@ -26,6 +26,10 @@
#ifndef QASYNCIO_H_
#define QASYNCIO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QAsyncIO ==============================================================
@@ -41,7 +45,11 @@ protected:
// constructors, copy constructors, and destructors ------------------------
- QAsyncIO() {};
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QAsyncIO() {}
+#endif
+
virtual ~QAsyncIO();
// member functions --------------------------------------------------------
@@ -53,9 +61,18 @@ protected:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QAsyncIO(const QAsyncIO &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QAsyncIO &operator=(const QAsyncIO &);
+#endif
}; // class QAsyncIO ===========================================================
@@ -71,8 +88,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QDataSource() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~QDataSource() {}
+#endif
// member functions --------------------------------------------------------
@@ -85,9 +109,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDataSource(const QDataSource &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDataSource &operator=(const QDataSource &);
+#endif
}; // end class QDataSource ====================================================
@@ -103,8 +136,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QDataSink() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~QDataSink() {}
+#endif
// member functions --------------------------------------------------------
@@ -116,9 +156,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDataSink(const QDataSink &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDataSink &operator=(const QDataSink &);
+#endif
}; // class QDataSink ==========================================================
diff --git a/WebCore/src/kwq/qt/qbitmap.h b/WebCore/src/kwq/qt/qbitmap.h
index 16e720b..fcef341 100644
--- a/WebCore/src/kwq/qt/qbitmap.h
+++ b/WebCore/src/kwq/qt/qbitmap.h
@@ -26,6 +26,10 @@
#ifndef QBITMAP_H_
#define QBITMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpixmap.h"
#include "qimage.h"
@@ -44,7 +48,10 @@ public:
QBitmap(int,int);
QBitmap(const QBitmap &);
- ~QBitmap();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QBitmap() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qbrush.h b/WebCore/src/kwq/qt/qbrush.h
index ccbdf24..b8367fa 100644
--- a/WebCore/src/kwq/qt/qbrush.h
+++ b/WebCore/src/kwq/qt/qbrush.h
@@ -26,6 +26,10 @@
#ifndef QBRUSH_H_
#define QBRUSH_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qcolor.h"
#include "qnamespace.h"
@@ -45,9 +49,7 @@ public:
QBrush();
QBrush(const QColor &);
QBrush(const QBrush &);
-
QBrush &operator=(const QBrush &);
-
~QBrush();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qbuffer.h b/WebCore/src/kwq/qt/qbuffer.h
index 45a8aa1..4db04c7 100644
--- a/WebCore/src/kwq/qt/qbuffer.h
+++ b/WebCore/src/kwq/qt/qbuffer.h
@@ -26,6 +26,10 @@
#ifndef QBUFFER_H_
#define QBUFFER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include "qarray.h"
@@ -44,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QBuffer();
-
~QBuffer();
// member functions --------------------------------------------------------
@@ -63,6 +66,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QBuffer(const QBuffer &);
QBuffer &operator=(const QBuffer &);
diff --git a/WebCore/src/kwq/qt/qbutton.h b/WebCore/src/kwq/qt/qbutton.h
index d337499..8ee3254 100644
--- a/WebCore/src/kwq/qt/qbutton.h
+++ b/WebCore/src/kwq/qt/qbutton.h
@@ -26,6 +26,10 @@
#ifndef QBUTTON_H_
#define QBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qstring.h"
@@ -41,10 +45,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QButton();
- QButton(QWidget *);
-
- virtual ~QButton();
+ QButton(QWidget *parent=0);
+ ~QButton();
// member functions --------------------------------------------------------
@@ -58,6 +60,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QButton(const QButton &);
QButton &operator=(const QButton &);
diff --git a/WebCore/src/kwq/qt/qcheckbox.h b/WebCore/src/kwq/qt/qcheckbox.h
index ba756de..55e2c40 100644
--- a/WebCore/src/kwq/qt/qcheckbox.h
+++ b/WebCore/src/kwq/qt/qcheckbox.h
@@ -26,6 +26,10 @@
#ifndef QCHECKBOX_H_
#define QCHECKBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
// class QCheckBox =============================================================
@@ -40,9 +44,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QCheckBox();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QCheckBox() {}
+#endif
+
QCheckBox(QWidget *);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QCheckBox() {}
+#endif
+
// member functions --------------------------------------------------------
void setChecked(bool);
@@ -54,8 +67,10 @@ public:
// private ---------------------------------------------------------------------
private:
- QCheckBox(const QCheckBox &);
- QCheckBox &operator=(const QCheckBox &);
+ // no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
+ QCheckBox(const QCheckBox &);
+ QCheckBox &operator=(const QCheckBox &);
}; // class QCheckBox ==========================================================
diff --git a/WebCore/src/kwq/qt/qcolor.h b/WebCore/src/kwq/qt/qcolor.h
index bb52036..e8de1f2 100644
--- a/WebCore/src/kwq/qt/qcolor.h
+++ b/WebCore/src/kwq/qt/qcolor.h
@@ -26,6 +26,10 @@
#ifndef QCOLOR_H_
#define QCOLOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qstring.h"
@@ -48,7 +52,10 @@ public:
QColor(const char *);
QColor(const QColor &);
- ~QColor();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QColor() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qcombobox.h b/WebCore/src/kwq/qt/qcombobox.h
index 1e4f557..42c9134 100644
--- a/WebCore/src/kwq/qt/qcombobox.h
+++ b/WebCore/src/kwq/qt/qcombobox.h
@@ -26,6 +26,10 @@
#ifndef QCOMBOBOX_H_
#define QCOMBOBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQListBox.h>
#include "qwidget.h"
@@ -43,7 +47,6 @@ public:
QComboBox(QWidget *parent=0, const char *name=0);
QComboBox(bool rw, QWidget *parent=0, const char *name=0);
-
~QComboBox();
// member functions --------------------------------------------------------
@@ -64,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QComboBox(const QComboBox &);
QComboBox &operator=(const QComboBox &);
diff --git a/WebCore/src/kwq/qt/qcstring.h b/WebCore/src/kwq/qt/qcstring.h
index a142c22..9b7ea6b 100644
--- a/WebCore/src/kwq/qt/qcstring.h
+++ b/WebCore/src/kwq/qt/qcstring.h
@@ -26,6 +26,10 @@
#ifndef QCSTRING_H_
#define QCSTRING_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// FIXME: does our implementation of QCString really need to inherit from
// QByteArray and QArray?
diff --git a/WebCore/src/kwq/qt/qcursor.h b/WebCore/src/kwq/qt/qcursor.h
index 7bdec14..b137ac3 100644
--- a/WebCore/src/kwq/qt/qcursor.h
+++ b/WebCore/src/kwq/qt/qcursor.h
@@ -26,6 +26,10 @@
#ifndef QCURSOR_H
#define QCURSOR_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QCursor ===============================================================
class QCursor {
@@ -39,9 +43,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QCursor();
-
QCursor(const QCursor &);
-
~QCursor();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qdatetime.h b/WebCore/src/kwq/qt/qdatetime.h
index bc1eafb..9ec7036 100644
--- a/WebCore/src/kwq/qt/qdatetime.h
+++ b/WebCore/src/kwq/qt/qdatetime.h
@@ -26,6 +26,10 @@
#ifndef QDATETIME_H_
#define QDATETIME_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QTime =================================================================
class QTime {
@@ -39,9 +43,11 @@ public:
QTime();
QTime(int, int);
- QTime(const QTime &);
- ~QTime();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTime() {}
+#endif
// member functions --------------------------------------------------------
@@ -58,6 +64,14 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QTime(const QTime &);
+#endif
+
}; // class QTime ==============================================================
@@ -75,10 +89,12 @@ public:
QDate(int y, int m, int d);
- QDate(const QDate &);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QDate() {}
+#endif
// member functions --------------------------------------------------------
-
// operators ---------------------------------------------------------------
QDate &operator=(const QDate &);
@@ -86,6 +102,14 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QDate(const QDate &);
+#endif
+
}; // class QDate ==============================================================
@@ -104,9 +128,13 @@ public:
QDateTime();
QDateTime(QDate date, QTime time);
-
QDateTime(const QDateTime &);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QDateTime() {}
+#endif
+
// member functions --------------------------------------------------------
int secsTo(const QDateTime &) const;
@@ -114,7 +142,11 @@ public:
// operators ---------------------------------------------------------------
- QDateTime &operator=(const QDateTime &);
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QDateTime &operator=(const QDateTime &);
+ //
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qdict.h b/WebCore/src/kwq/qt/qdict.h
index 27c50f0..ccc8cba 100644
--- a/WebCore/src/kwq/qt/qdict.h
+++ b/WebCore/src/kwq/qt/qdict.h
@@ -26,6 +26,10 @@
#ifndef QDICT_H_
#define QDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQCollection.h>
#include "qstring.h"
@@ -42,9 +46,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QDict(int size=17, bool caseSensitive=TRUE);
-
QDict(const QDict<T> &);
-
~QDict();
// member functions --------------------------------------------------------
@@ -76,8 +78,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QDictIterator() {}
+#endif
+
QDictIterator(const QDict<T> &);
-
~QDictIterator();
// member functions --------------------------------------------------------
@@ -94,9 +100,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QDictIterator(const QDictIterator &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QDictIterator &operator=(const QDictIterator &);
+#endif
}; // class QDictIterator ======================================================
diff --git a/WebCore/src/kwq/qt/qdir.h b/WebCore/src/kwq/qt/qdir.h
index cfc6077..4fa412f 100644
--- a/WebCore/src/kwq/qt/qdir.h
+++ b/WebCore/src/kwq/qt/qdir.h
@@ -26,6 +26,10 @@
#ifndef QDIR_H_
#define QDIR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qstringlist.h"
#include "qfile.h"
@@ -41,10 +45,10 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+
QDir();
QDir(const QString &);
QDir(const QDir &);
-
virtual ~QDir();
// member functions --------------------------------------------------------
@@ -57,13 +61,11 @@ public:
// operators ---------------------------------------------------------------
+ QDir &operator=(const QDir &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no assignment
- QDir &operator=(const QDir &);
-
}; // class QDir ===============================================================
#endif
diff --git a/WebCore/src/kwq/qt/qdrawutil.h b/WebCore/src/kwq/qt/qdrawutil.h
index 3393e7c..20ca608 100644
--- a/WebCore/src/kwq/qt/qdrawutil.h
+++ b/WebCore/src/kwq/qt/qdrawutil.h
@@ -26,6 +26,10 @@
#ifndef QDRAWUTIL_H_
#define QDRAWUTIL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpainter.h"
#include "qpalette.h"
#include "qbrush.h"
diff --git a/WebCore/src/kwq/qt/qevent.h b/WebCore/src/kwq/qt/qevent.h
index ea4a5d1..ba7d057 100644
--- a/WebCore/src/kwq/qt/qevent.h
+++ b/WebCore/src/kwq/qt/qevent.h
@@ -26,6 +26,10 @@
#ifndef QEVENT_H_
#define QEVENT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qregion.h"
#include "qpoint.h"
@@ -54,8 +58,12 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QEvent() {}
+#endif
+
QEvent(Type);
-
virtual ~QEvent();
// member functions --------------------------------------------------------
@@ -68,9 +76,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QEvent(const QEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QEvent &operator=(const QEvent &);
+#endif
}; // class QEvent =============================================================
@@ -87,9 +104,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QMouseEvent() {}
+#endif
+
QMouseEvent(Type type, const QPoint &pos, int button, int state);
- virtual ~QMouseEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QMouseEvent() {}
+#endif
// member functions --------------------------------------------------------
@@ -107,9 +132,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QMouseEvent(const QMouseEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QMouseEvent &operator=(const QMouseEvent &);
+#endif
}; // class QMouseEvent ========================================================
@@ -126,9 +160,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTimerEvent() {}
+#endif
+
QTimerEvent(int timerId);
- virtual ~QTimerEvent();
+ ~QTimerEvent();
// member functions --------------------------------------------------------
@@ -140,9 +179,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTimerEvent(const QTimerEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTimerEvent &operator=(const QTimerEvent &);
+#endif
}; // class QTimerEvent ========================================================
@@ -158,10 +206,17 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
- QKeyEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QKeyEvent() {}
+#endif
+
QKeyEvent(Type, Key, int, int);
- virtual ~QKeyEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QKeyEvent() {}
+#endif
// member functions --------------------------------------------------------
@@ -175,9 +230,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QKeyEvent(const QKeyEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QKeyEvent &operator=(const QKeyEvent &);
+#endif
}; // class QKeyEvent ==========================================================
@@ -194,9 +258,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QFocusEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QFocusEvent() {}
+#endif
+
+ QFocusEvent(Type);
- virtual ~QFocusEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QFocusEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -205,9 +277,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QFocusEvent(const QFocusEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QFocusEvent &operator=(const QFocusEvent &);
+#endif
}; // class QFocusEvent ========================================================
@@ -224,9 +305,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QHideEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QHideEvent() {}
+#endif
- virtual ~QHideEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QHideEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -235,9 +322,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QHideEvent(const QHideEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QHideEvent &operator=(const QHideEvent &);
+#endif
}; // class QHideEvent =========================================================
@@ -254,9 +350,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QResizeEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QResizeEvent() {}
+#endif
- virtual ~QResizeEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QResizeEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -265,9 +367,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QResizeEvent(const QResizeEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QResizeEvent &operator=(const QResizeEvent &);
+#endif
}; // class QResizeEvent =======================================================
@@ -284,10 +395,16 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QShowEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QShowEvent() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QShowEvent() {}
+#endif
- virtual ~QShowEvent();
-
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -295,9 +412,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QShowEvent(const QShowEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QShowEvent &operator=(const QShowEvent &);
+#endif
}; // class QShowEvent =========================================================
@@ -314,9 +440,15 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QWheelEvent();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QWheelEvent() {}
+#endif
- virtual ~QWheelEvent();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QWheelEvent() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -325,9 +457,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QWheelEvent(const QWheelEvent &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QWheelEvent &operator=(const QWheelEvent &);
+#endif
}; // class QWheelEvent ========================================================
diff --git a/WebCore/src/kwq/qt/qfile.h b/WebCore/src/kwq/qt/qfile.h
index 08a520f..f1cfece 100644
--- a/WebCore/src/kwq/qt/qfile.h
+++ b/WebCore/src/kwq/qt/qfile.h
@@ -26,6 +26,10 @@
#ifndef QFILE_H_
#define QFILE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QFile =================================================================
@@ -42,7 +46,6 @@ public:
QFile();
QFile(const QString &);
-
~QFile();
// member functions --------------------------------------------------------
@@ -61,6 +64,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QFile(const QFile &);
QFile &operator=(const QFile &);
diff --git a/WebCore/src/kwq/qt/qfont.h b/WebCore/src/kwq/qt/qfont.h
index 688a260..bc2042e 100644
--- a/WebCore/src/kwq/qt/qfont.h
+++ b/WebCore/src/kwq/qt/qfont.h
@@ -26,6 +26,10 @@
#ifndef QFONT_H_
#define QFONT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class QFont =================================================================
@@ -46,9 +50,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QFont();
-
QFont(const QFont &);
-
~QFont();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qfontdatabase.h b/WebCore/src/kwq/qt/qfontdatabase.h
index adc253c..1893d78 100644
--- a/WebCore/src/kwq/qt/qfontdatabase.h
+++ b/WebCore/src/kwq/qt/qfontdatabase.h
@@ -26,6 +26,10 @@
#ifndef QFONTDATABASE_H_
#define QFONTDATABASE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qvaluelist.h"
#include "qfont.h"
#include "qstring.h"
@@ -44,7 +48,10 @@ public:
QFontDatabase();
- ~QFontDatabase();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QFontDatabase() {}
+#endif
// member functions --------------------------------------------------------
@@ -63,9 +70,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QFontDatabase(const QFontDatabase &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QFontDatabase &operator=(const QFontDatabase &);
+#endif
}; // class QFontDatabase ======================================================
diff --git a/WebCore/src/kwq/qt/qfontinfo.h b/WebCore/src/kwq/qt/qfontinfo.h
index bd24c56..9699903 100644
--- a/WebCore/src/kwq/qt/qfontinfo.h
+++ b/WebCore/src/kwq/qt/qfontinfo.h
@@ -26,6 +26,10 @@
#ifndef QFONTINFO_H_
#define QFONTINFO_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qfont.h"
// class QFontInfo =============================================================
@@ -42,7 +46,6 @@ public:
QFontInfo(const QFont &);
QFontInfo(const QFontInfo &);
-
~QFontInfo();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qfontmetrics.h b/WebCore/src/kwq/qt/qfontmetrics.h
index f652f09..b872af1 100644
--- a/WebCore/src/kwq/qt/qfontmetrics.h
+++ b/WebCore/src/kwq/qt/qfontmetrics.h
@@ -26,6 +26,10 @@
#ifndef QFONTMETRICS_H_
#define QFONTMETRICS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qrect.h"
#include "qsize.h"
#include "qstring.h"
@@ -46,7 +50,6 @@ public:
QFontMetrics();
QFontMetrics(const QFont &);
QFontMetrics(const QFontMetrics &);
-
~QFontMetrics();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qguardedptr.h b/WebCore/src/kwq/qt/qguardedptr.h
index 6e4234b..ac779bf 100644
--- a/WebCore/src/kwq/qt/qguardedptr.h
+++ b/WebCore/src/kwq/qt/qguardedptr.h
@@ -26,6 +26,10 @@
#ifndef QGUARDEDPTR_H_
#define QGUARDEDPTR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
// class QGuardedPtr ===========================================================
@@ -52,15 +56,13 @@ public:
// operators ---------------------------------------------------------------
+ QGuardedPtr &operator=(const QGuardedPtr &);
operator T *() const;
T *operator->() const;
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- QGuardedPtr &operator=(const QGuardedPtr &);
-
}; // class QGuardedPtr ========================================================
#endif
diff --git a/WebCore/src/kwq/qt/qhbox.h b/WebCore/src/kwq/qt/qhbox.h
index 48e973d..a297f9a 100644
--- a/WebCore/src/kwq/qt/qhbox.h
+++ b/WebCore/src/kwq/qt/qhbox.h
@@ -26,6 +26,10 @@
#ifndef QHBOX_H_
#define QHBOX_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include <KWQFrame.h>
@@ -43,7 +47,6 @@ public:
QHBox();
QHBox(QWidget *);
-
~QHBox();
// member functions --------------------------------------------------------
@@ -56,9 +59,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QHBox(const QHBox &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QHBox &operator=(const QHBox &);
+#endif
}; // class QHBox ==============================================================
diff --git a/WebCore/src/kwq/qt/qimage.h b/WebCore/src/kwq/qt/qimage.h
index 4c349de..bfc343e 100644
--- a/WebCore/src/kwq/qt/qimage.h
+++ b/WebCore/src/kwq/qt/qimage.h
@@ -26,6 +26,10 @@
#ifndef QIMAGE_H_
#define QIMAGE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qcolor.h"
@@ -43,7 +47,6 @@ public:
QImage();
QImage(const QImage &);
-
~QImage();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qinputdialog.h b/WebCore/src/kwq/qt/qinputdialog.h
index 5512a8a..7a15d1a 100644
--- a/WebCore/src/kwq/qt/qinputdialog.h
+++ b/WebCore/src/kwq/qt/qinputdialog.h
@@ -26,7 +26,12 @@
#ifndef QINPUTDIALOG_H_
#define QINPUTDIALOG_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
+#include "qlabel.h"
#include "qwidget.h"
// class QInputDialog ==========================================================
@@ -46,8 +51,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
QInputDialog() {}
+#endif
+ QInputDialog(const QString &label);
~QInputDialog() {}
// member functions --------------------------------------------------------
@@ -58,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QInputDialog(const QInputDialog &);
QInputDialog &operator=(const QInputDialog &);
diff --git a/WebCore/src/kwq/qt/qintcache.h b/WebCore/src/kwq/qt/qintcache.h
index 5c6bde5..8ac1b75 100644
--- a/WebCore/src/kwq/qt/qintcache.h
+++ b/WebCore/src/kwq/qt/qintcache.h
@@ -26,4 +26,8 @@
#ifndef QINTCACHE_H_
#define QINTCACHE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/src/kwq/qt/qintdict.h b/WebCore/src/kwq/qt/qintdict.h
index a93eceb..998868a 100644
--- a/WebCore/src/kwq/qt/qintdict.h
+++ b/WebCore/src/kwq/qt/qintdict.h
@@ -26,4 +26,8 @@
#ifndef QINTDICT_H_
#define QINTDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/src/kwq/qt/qlabel.h b/WebCore/src/kwq/qt/qlabel.h
index 4679fbb..418aadd 100644
--- a/WebCore/src/kwq/qt/qlabel.h
+++ b/WebCore/src/kwq/qt/qlabel.h
@@ -26,6 +26,10 @@
#ifndef QLABEL_H_
#define QLABEL_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQFrame.h>
#include "qwidget.h"
#include "qstring.h"
@@ -42,10 +46,14 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QLabel() {}
+#endif
+
QLabel(QWidget *parent);
QLabel(const QString &, QWidget *);
-
- virtual ~QLabel();
+ ~QLabel();
// member functions --------------------------------------------------------
@@ -59,6 +67,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QLabel(const QLabel &);
QLabel &operator=(const QLabel &);
diff --git a/WebCore/src/kwq/qt/qlayout.h b/WebCore/src/kwq/qt/qlayout.h
index b36c599..073e191 100644
--- a/WebCore/src/kwq/qt/qlayout.h
+++ b/WebCore/src/kwq/qt/qlayout.h
@@ -26,4 +26,8 @@
#ifndef QLAYOUT_H_
#define QLAYOUT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#endif
diff --git a/WebCore/src/kwq/qt/qlineedit.h b/WebCore/src/kwq/qt/qlineedit.h
index a95ddd1..32dcf75 100644
--- a/WebCore/src/kwq/qt/qlineedit.h
+++ b/WebCore/src/kwq/qt/qlineedit.h
@@ -26,6 +26,10 @@
#ifndef QLINEEDIT_H_
#define QLINEEDIT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qwidget.h"
#include "qevent.h"
#include "qstring.h"
@@ -71,6 +75,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QLineEdit(const QLineEdit &);
QLineEdit &operator=(const QLineEdit &);
diff --git a/WebCore/src/kwq/qt/qlist.h b/WebCore/src/kwq/qt/qlist.h
index 81d5354..5c8ae91 100644
--- a/WebCore/src/kwq/qt/qlist.h
+++ b/WebCore/src/kwq/qt/qlist.h
@@ -26,6 +26,10 @@
#ifndef QLIST_H_
#define QLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -42,8 +46,7 @@ public:
QList();
QList(const QList<T> &);
-
- virtual ~QList();
+ ~QList();
// member functions --------------------------------------------------------
@@ -98,8 +101,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QListIterator(const QList<T> &);
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QListIterator() {}
+#endif
+ QListIterator(const QList<T> &);
~QListIterator();
// member functions --------------------------------------------------------
@@ -120,8 +127,12 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QListIterator<T>(const QListIterator<T> &);
+#endif
}; // class QListIterator ======================================================
diff --git a/WebCore/src/kwq/qt/qmap.h b/WebCore/src/kwq/qt/qmap.h
index 0c412b9..0681c6f 100644
--- a/WebCore/src/kwq/qt/qmap.h
+++ b/WebCore/src/kwq/qt/qmap.h
@@ -26,6 +26,10 @@
#ifndef QMAP_H_
#define QMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QMapIterator ==========================================================
@@ -41,9 +45,12 @@ public:
// constructors, copy constructors, and destructors ------------------------
QMapIterator();
- QMapIterator(const QMapIterator<K,T>& it);
+ QMapIterator(const QMapIterator<K,T>&);
- ~QMapIterator();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QMapIterator() {}
+#endif
// member functions --------------------------------------------------------
@@ -59,9 +66,16 @@ public:
const T& operator*() const;
QMapIterator<K,T>& operator++();
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QMapIterator<K,T> &operator=(const QMapIterator<K,T> &);
+ //
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+
}; // class QMapIterator =======================================================
@@ -78,8 +92,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QMapConstIterator();
- QMapConstIterator(const QMapConstIterator<K,T>&);
- QMapConstIterator(const QMapIterator<K,T>&);
+ QMapConstIterator(const QMapConstIterator<K,T> &);
+ QMapConstIterator(const QMapIterator<K,T> &);
~QMapConstIterator();
@@ -91,11 +105,17 @@ public:
// operators ---------------------------------------------------------------
QMapConstIterator<K,T> &operator=(const QMapConstIterator<K,T> &);
- bool operator==(const QMapConstIterator<K,T>&) const;
- bool operator!=(const QMapConstIterator<K,T>&) const;
+ bool operator==(const QMapConstIterator<K,T> &) const;
+ bool operator!=(const QMapConstIterator<K,T> &) const;
const T &operator*() const;
QMapConstIterator<K,T>& operator++();
+ // this is not declared in the code, although assignment of this type
+ // is used in the code... i guess a pointer copy is what they want
+ //
+ //QMapConstIterator<K,T> &operator=(const QMapConstIterator<K,T> &);
+ //
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
@@ -119,7 +139,6 @@ public:
QMap();
QMap(const QMap<K,T>&);
-
~QMap();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qmovie.h b/WebCore/src/kwq/qt/qmovie.h
index 7843d88..81e3b7c 100644
--- a/WebCore/src/kwq/qt/qmovie.h
+++ b/WebCore/src/kwq/qt/qmovie.h
@@ -26,6 +26,10 @@
#ifndef QMOVIE_H_
#define QMOVIE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
#include "qasyncio.h"
#include "qpixmap.h"
@@ -51,7 +55,6 @@ public:
QMovie();
QMovie(QDataSource*, int bufsize=1024);
QMovie(const QMovie &);
-
~QMovie();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qnamespace.h b/WebCore/src/kwq/qt/qnamespace.h
index 7a5b06d..f41f3f9 100644
--- a/WebCore/src/kwq/qt/qnamespace.h
+++ b/WebCore/src/kwq/qt/qnamespace.h
@@ -26,6 +26,10 @@
#ifndef QNAMESPACE_H_
#define QNAMESPACE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QColor;
class QCursor;
@@ -116,8 +120,15 @@ public:
// static member functions -------------------------------------------------
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
Qt() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
~Qt() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -126,9 +137,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
Qt(const Qt &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
Qt &operator=(const Qt &);
+#endif
}; // class Qt =================================================================
diff --git a/WebCore/src/kwq/qt/qobject.h b/WebCore/src/kwq/qt/qobject.h
index 993535a..a791d2e 100644
--- a/WebCore/src/kwq/qt/qobject.h
+++ b/WebCore/src/kwq/qt/qobject.h
@@ -26,6 +26,10 @@
#ifndef QOBJECT_H_
#define QOBJECT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include "qnamespace.h"
@@ -83,7 +87,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QObject(QObject *parent=0, const char *name=0);
-
virtual ~QObject();
// member functions --------------------------------------------------------
@@ -111,6 +114,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QObject(const QObject &);
QObject &operator=(const QObject &);
diff --git a/WebCore/src/kwq/qt/qpaintdevice.h b/WebCore/src/kwq/qt/qpaintdevice.h
index 327cb1d..a3ef57c 100644
--- a/WebCore/src/kwq/qt/qpaintdevice.h
+++ b/WebCore/src/kwq/qt/qpaintdevice.h
@@ -26,6 +26,10 @@
#ifndef QPAINTDEVICE_H_
#define QPAINTDEVICE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QPaintDevice ==========================================================
class QPaintDevice {
@@ -36,7 +40,16 @@ public:
// enums -------------------------------------------------------------------
// constants ---------------------------------------------------------------
// static member functions -------------------------------------------------
+
// constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPaintDevice() {}
+#endif
+
+ virtual ~QPaintDevice();
+
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -45,6 +58,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPaintDevice(const QPaintDevice &);
QPaintDevice &operator=(const QPaintDevice &);
diff --git a/WebCore/src/kwq/qt/qpaintdevicemetrics.h b/WebCore/src/kwq/qt/qpaintdevicemetrics.h
index f9161d5..7701d2a 100644
--- a/WebCore/src/kwq/qt/qpaintdevicemetrics.h
+++ b/WebCore/src/kwq/qt/qpaintdevicemetrics.h
@@ -26,6 +26,10 @@
#ifndef QPAINTDEVICEMETRICS_H_
#define QPAINTDEVICEMETRICS_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QPaintDevice;
// class QPaintDeviceMetrics ===================================================
@@ -40,8 +44,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+#endif
+
QPaintDeviceMetrics(const QPaintDevice *);
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QPaintDeviceMetrics() {}
+#endif
+
// member functions --------------------------------------------------------
int logicalDpiY() const;
@@ -53,9 +66,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QPaintDeviceMetrics(const QPaintDeviceMetrics &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QPaintDeviceMetrics &operator=(const QPaintDeviceMetrics &);
+#endif
}; // class QPaintDeviceMetrics ================================================
diff --git a/WebCore/src/kwq/qt/qpainter.h b/WebCore/src/kwq/qt/qpainter.h
index 6ef1049..2f9745c 100644
--- a/WebCore/src/kwq/qt/qpainter.h
+++ b/WebCore/src/kwq/qt/qpainter.h
@@ -26,6 +26,10 @@
#ifndef QPAINTER_H_
#define QPAINTER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qpaintdevice.h"
#include "qcolor.h"
@@ -53,7 +57,10 @@ public:
QWMatrix();
- ~QWMatrix();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QWMatrix() {}
+#endif
// member functions --------------------------------------------------------
@@ -64,6 +71,20 @@ public:
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QWMatrix(const QWMatrix &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QWMatrix &operator=(const QWMatrix &);
+#endif
+
}; // class QWMatrix ===========================================================
@@ -81,7 +102,6 @@ public:
QPainter();
QPainter(const QPaintDevice *);
-
~QPainter();
// member functions --------------------------------------------------------
@@ -132,6 +152,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPainter(const QPainter &);
QPainter &operator=(const QPainter &);
diff --git a/WebCore/src/kwq/qt/qpalette.h b/WebCore/src/kwq/qt/qpalette.h
index b0464ad..e14a5af 100644
--- a/WebCore/src/kwq/qt/qpalette.h
+++ b/WebCore/src/kwq/qt/qpalette.h
@@ -26,6 +26,10 @@
#ifndef QPALETTE_H_
#define QPALETTE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QColor;
// class QColorGroup ===========================================================
@@ -56,7 +60,6 @@ public:
QColorGroup();
QColorGroup(const QColorGroup &);
-
~QColorGroup();
// member functions --------------------------------------------------------
@@ -103,7 +106,6 @@ public:
QPalette();
QPalette(const QPalette &);
-
~QPalette();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qpen.h b/WebCore/src/kwq/qt/qpen.h
index fe659bd..9547532 100644
--- a/WebCore/src/kwq/qt/qpen.h
+++ b/WebCore/src/kwq/qt/qpen.h
@@ -26,6 +26,10 @@
#ifndef QPEN_H_
#define QPEN_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qcolor.h"
@@ -44,7 +48,6 @@ public:
QPen();
QPen(const QColor &color, uint width=0, PenStyle style=SolidLine);
QPen(const QPen &);
-
~QPen();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qpixmap.h b/WebCore/src/kwq/qt/qpixmap.h
index 0edfdac..0519a7a 100644
--- a/WebCore/src/kwq/qt/qpixmap.h
+++ b/WebCore/src/kwq/qt/qpixmap.h
@@ -26,6 +26,10 @@
#ifndef QPIXMAP_H_
#define QPIXMAP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpaintdevice.h"
#include "qcolor.h"
#include "qstring.h"
@@ -54,7 +58,6 @@ public:
QPixmap(const QByteArray&);
QPixmap(int,int);
QPixmap(const QPixmap &);
-
~QPixmap();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qpoint.h b/WebCore/src/kwq/qt/qpoint.h
index db7cd4d..a4f04c0 100644
--- a/WebCore/src/kwq/qt/qpoint.h
+++ b/WebCore/src/kwq/qt/qpoint.h
@@ -26,8 +26,14 @@
#ifndef QPOINT_H_
#define QPOINT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
+#include "qarray.h"
+
// class QPoint ================================================================
class QPoint {
@@ -44,7 +50,10 @@ public:
QPoint(int, int);
QPoint(const QPoint &);
- ~QPoint();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QPoint() {}
+#endif
// member functions --------------------------------------------------------
@@ -68,7 +77,7 @@ public:
// class QPointArray ===========================================================
-class QPointArray {
+class QPointArray : public QArray<QPoint> {
public:
// typedefs ----------------------------------------------------------------
@@ -78,8 +87,8 @@ public:
// constructors, copy constructors, and destructors ------------------------
QPointArray(int);
+ QPointArray(const QPointArray &);
QPointArray(int, const QCOORD *);
-
~QPointArray();
// member functions --------------------------------------------------------
@@ -89,14 +98,11 @@ public:
// operators ---------------------------------------------------------------
+ QPointArray &operator=(const QPointArray &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QPointArray(const QPointArray &);
- QPointArray &operator=(const QPointArray &);
-
}; // class QPointArray ========================================================
#endif
diff --git a/WebCore/src/kwq/qt/qpopupmenu.h b/WebCore/src/kwq/qt/qpopupmenu.h
index f186004..6cb02a3 100644
--- a/WebCore/src/kwq/qt/qpopupmenu.h
+++ b/WebCore/src/kwq/qt/qpopupmenu.h
@@ -26,6 +26,10 @@
#ifndef QPOPUPMENU_H_
#define QPOPUPMENU_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QPopupMenu ============================================================
class QPopupMenu {
@@ -39,7 +43,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QPopupMenu();
-
~QPopupMenu();
// member functions --------------------------------------------------------
@@ -50,6 +53,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPopupMenu(const QPopupMenu &);
QPopupMenu &operator=(const QPopupMenu &);
diff --git a/WebCore/src/kwq/qt/qptrdict.h b/WebCore/src/kwq/qt/qptrdict.h
index 4865c39..7f139ab 100644
--- a/WebCore/src/kwq/qt/qptrdict.h
+++ b/WebCore/src/kwq/qt/qptrdict.h
@@ -26,6 +26,10 @@
#ifndef QPTRDICT_H_
#define QPTRDICT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -43,7 +47,6 @@ public:
QPtrDict(int size=17);
QPtrDict(const QPtrDict<T> &);
-
~QPtrDict();
// member functions --------------------------------------------------------
@@ -79,9 +82,13 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QPtrDictIterator(const QPtrDict<T> &);
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPtrDictIterator() {}
+#endif
- ~QPtrDictIterator();
+ QPtrDictIterator(const QPtrDict<T> &);
+ ~QPtrDictIterator() {}
// member functions --------------------------------------------------------
@@ -96,9 +103,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QPtrDictIterator(const QPtrDictIterator &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QPtrDictIterator &operator=(const QPtrDictIterator &);
+#endif
}; // class QPtrDictIterator ===================================================
diff --git a/WebCore/src/kwq/qt/qpushbutton.h b/WebCore/src/kwq/qt/qpushbutton.h
index c81de3b..df3bc77 100644
--- a/WebCore/src/kwq/qt/qpushbutton.h
+++ b/WebCore/src/kwq/qt/qpushbutton.h
@@ -26,6 +26,10 @@
#ifndef QPUSHBUTTON_H_
#define QPUSHBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
#include "qwidget.h"
@@ -43,10 +47,13 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QPushButton();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QPushButton() {}
+#endif
+
QPushButton(QWidget *);
QPushButton(const QString &text, QWidget *parent, const char* name=0);
-
~QPushButton();
// member functions --------------------------------------------------------
@@ -57,6 +64,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QPushButton(const QPushButton &);
QPushButton &operator=(const QPushButton &);
diff --git a/WebCore/src/kwq/qt/qradiobutton.h b/WebCore/src/kwq/qt/qradiobutton.h
index f5b269c..30bb290 100644
--- a/WebCore/src/kwq/qt/qradiobutton.h
+++ b/WebCore/src/kwq/qt/qradiobutton.h
@@ -26,6 +26,10 @@
#ifndef QRADIOBUTTON_H_
#define QRADIOBUTTON_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQButton.h>
#include "qwidget.h"
@@ -42,10 +46,17 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QRadioButton();
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QRadioButton() {}
+#endif
+
QRadioButton(QWidget *);
- ~QRadioButton();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QRadioButton() {}
+#endif
// member functions --------------------------------------------------------
@@ -58,6 +69,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QRadioButton(const QRadioButton &);
QRadioButton &operator=(const QRadioButton &);
diff --git a/WebCore/src/kwq/qt/qrect.h b/WebCore/src/kwq/qt/qrect.h
index 6cdc4df..27f1cc5 100644
--- a/WebCore/src/kwq/qt/qrect.h
+++ b/WebCore/src/kwq/qt/qrect.h
@@ -26,6 +26,10 @@
#ifndef QRECT_H_
#define QRECT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qsize.h"
// class QRect =================================================================
@@ -44,7 +48,10 @@ public:
QRect(int l, int t, int w, int h);
QRect(const QRect &);
- ~QRect();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QRect() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qregexp.h b/WebCore/src/kwq/qt/qregexp.h
index c92c663..f092dbe 100644
--- a/WebCore/src/kwq/qt/qregexp.h
+++ b/WebCore/src/kwq/qt/qregexp.h
@@ -26,6 +26,10 @@
#ifndef QREGEXP_H_
#define QREGEXP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QRegExp ===============================================================
@@ -43,7 +47,6 @@ public:
QRegExp();
QRegExp(const QString &);
QRegExp(const QRegExp &);
-
~QRegExp();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qregion.h b/WebCore/src/kwq/qt/qregion.h
index b087686..f064442 100644
--- a/WebCore/src/kwq/qt/qregion.h
+++ b/WebCore/src/kwq/qt/qregion.h
@@ -26,6 +26,10 @@
#ifndef QREGION_H_
#define QREGION_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qpoint.h"
#include "qimage.h"
#include "qrect.h"
@@ -51,7 +55,6 @@ public:
QRegion(int, int, int, int, RegionType = Rectangle);
QRegion(const QPointArray &);
QRegion(const QRegion &);
-
~QRegion();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qscrollview.h b/WebCore/src/kwq/qt/qscrollview.h
index fbfb585..41ffdf2 100644
--- a/WebCore/src/kwq/qt/qscrollview.h
+++ b/WebCore/src/kwq/qt/qscrollview.h
@@ -26,6 +26,10 @@
#ifndef QSCROLLVIEW_H_
#define QSCROLLVIEW_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQScrollBar.h>
#include <KWQFrame.h>
#include "qwidget.h"
@@ -48,8 +52,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QScrollView();
-
- virtual ~QScrollView();
+ ~QScrollView();
// member functions --------------------------------------------------------
@@ -83,6 +86,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QScrollView(const QScrollView &);
QScrollView &operator=(const QScrollView &);
diff --git a/WebCore/src/kwq/qt/qsize.h b/WebCore/src/kwq/qt/qsize.h
index 195708a..b78b584 100644
--- a/WebCore/src/kwq/qt/qsize.h
+++ b/WebCore/src/kwq/qt/qsize.h
@@ -26,6 +26,10 @@
#ifndef QSIZE_H_
#define QSIZE_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QSize =================================================================
class QSize {
@@ -42,7 +46,10 @@ public:
QSize(int,int);
QSize(const QSize &);
- ~QSize();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QSize() {}
+#endif
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qsortedlist.h b/WebCore/src/kwq/qt/qsortedlist.h
index caa9d38..cfb570c 100644
--- a/WebCore/src/kwq/qt/qsortedlist.h
+++ b/WebCore/src/kwq/qt/qsortedlist.h
@@ -26,6 +26,10 @@
#ifndef QSORTEDLIST_H_
#define QSORTEDLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qlist.h"
// class QSortedList ===========================================================
@@ -42,7 +46,6 @@ public:
QSortedList();
QSortedList(const QSortedList<T> &);
-
~QSortedList();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qstack.h b/WebCore/src/kwq/qt/qstack.h
index 3570460..9ee3143 100644
--- a/WebCore/src/kwq/qt/qstack.h
+++ b/WebCore/src/kwq/qt/qstack.h
@@ -26,6 +26,10 @@
#ifndef QSTACK_H_
#define QSTACK_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// class QStack ================================================================
template<class T> class QStack {
@@ -39,7 +43,6 @@ public:
QStack();
QStack(const QStack<T> &);
-
~QStack();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qstring.h b/WebCore/src/kwq/qt/qstring.h
index 71366c6..8edeca7 100644
--- a/WebCore/src/kwq/qt/qstring.h
+++ b/WebCore/src/kwq/qt/qstring.h
@@ -26,6 +26,10 @@
#ifndef QSTRING_H_
#define QSTRING_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#define Fixed MacFixed
#define Rect MacRect
#define Boolean MacBoolean
@@ -267,8 +271,12 @@ public:
// private ---------------------------------------------------------------------
private:
- // no assignment
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QConstString &operator=(const QConstString &);
+#endif
}; // class QConstString =======================================================
diff --git a/WebCore/src/kwq/qt/qstringlist.h b/WebCore/src/kwq/qt/qstringlist.h
index a697574..35207db 100644
--- a/WebCore/src/kwq/qt/qstringlist.h
+++ b/WebCore/src/kwq/qt/qstringlist.h
@@ -26,6 +26,10 @@
#ifndef QSTRINGLIST_H_
#define QSTRINGLIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qvaluelist.h"
diff --git a/WebCore/src/kwq/qt/qtextcodec.h b/WebCore/src/kwq/qt/qtextcodec.h
index 8689bb8..29d5356 100644
--- a/WebCore/src/kwq/qt/qtextcodec.h
+++ b/WebCore/src/kwq/qt/qtextcodec.h
@@ -26,6 +26,10 @@
#ifndef QTEXTCODEC_H_
#define QTEXTCODEC_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
#include "qcstring.h"
@@ -41,8 +45,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QTextDecoder();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTextDecoder() {}
+#endif
+
virtual ~QTextDecoder();
// member functions --------------------------------------------------------
@@ -55,9 +62,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextDecoder(const QTextDecoder &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextDecoder &operator=(const QTextDecoder &);
+#endif
}; // class QTextDecoder =======================================================
@@ -79,8 +95,11 @@ public:
// constructors, copy constructors, and destructors ------------------------
- QTextCodec();
-
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QTextCodec() {}
+#endif
+
virtual ~QTextCodec();
// member functions --------------------------------------------------------
@@ -100,9 +119,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextCodec(const QTextCodec &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextCodec &operator=(const QTextCodec &);
+#endif
}; // class QTextCodec =========================================================
diff --git a/WebCore/src/kwq/qt/qtextstream.h b/WebCore/src/kwq/qt/qtextstream.h
index 7024dcf..e600247 100644
--- a/WebCore/src/kwq/qt/qtextstream.h
+++ b/WebCore/src/kwq/qt/qtextstream.h
@@ -26,6 +26,10 @@
#ifndef QTEXTSTREAM_H_
#define QTEXTSTREAM_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qstring.h"
// class QTextStream ===========================================================
@@ -42,7 +46,6 @@ public:
QTextStream();
QTextStream(QByteArray, int);
-
virtual ~QTextStream();
// member functions --------------------------------------------------------
@@ -58,6 +61,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QTextStream(const QTextStream &);
QTextStream &operator=(const QTextStream &);
@@ -78,7 +82,11 @@ public:
QTextIStream(QString *);
- virtual ~QTextIStream();
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTextIStream() {}
+#endif
// member functions --------------------------------------------------------
@@ -90,9 +98,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextIStream(const QTextIStream &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextIStream &operator=(const QTextIStream &);
+#endif
}; // class QTextIStream =======================================================
@@ -112,7 +129,10 @@ public:
QTextOStream(QString *);
QTextOStream(QByteArray);
- virtual ~QTextOStream();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QTextOStream() {}
+#endif
// member functions --------------------------------------------------------
@@ -124,9 +144,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QTextOStream(const QTextOStream &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QTextOStream &operator=(const QTextOStream &);
+#endif
}; // class QTextOStream =======================================================
diff --git a/WebCore/src/kwq/qt/qtimer.h b/WebCore/src/kwq/qt/qtimer.h
index 52e0b25..3a1050d 100644
--- a/WebCore/src/kwq/qt/qtimer.h
+++ b/WebCore/src/kwq/qt/qtimer.h
@@ -26,6 +26,10 @@
#ifndef QTIMER_H_
#define QTIMER_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
// class QTimer ================================================================
@@ -44,7 +48,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QTimer();
-
~QTimer();
// member functions --------------------------------------------------------
@@ -55,6 +58,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QTimer(const QTimer &);
QTimer &operator=(const QTimer &);
diff --git a/WebCore/src/kwq/qt/qtooltip.h b/WebCore/src/kwq/qt/qtooltip.h
index 5ee206f..e6c745f 100644
--- a/WebCore/src/kwq/qt/qtooltip.h
+++ b/WebCore/src/kwq/qt/qtooltip.h
@@ -26,6 +26,10 @@
#ifndef QTOOLTIP_H_
#define QTOOLTIP_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qnamespace.h"
#include "qpalette.h"
#include "qwidget.h"
@@ -47,7 +51,10 @@ public:
QToolTip(QWidget *);
- ~QToolTip();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QToolTip() {}
+#endif
// member functions --------------------------------------------------------
// operators ---------------------------------------------------------------
@@ -56,9 +63,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QToolTip(const QToolTip &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QToolTip &operator=(const QToolTip &);
+#endif
}; // class QToolTip ===========================================================
diff --git a/WebCore/src/kwq/qt/qvaluelist.h b/WebCore/src/kwq/qt/qvaluelist.h
index da8a1d4..069f71a 100644
--- a/WebCore/src/kwq/qt/qvaluelist.h
+++ b/WebCore/src/kwq/qt/qvaluelist.h
@@ -26,6 +26,10 @@
#ifndef QVALUELIST_H_
#define QVALUELIST_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
// class QValueListIterator ====================================================
diff --git a/WebCore/src/kwq/qt/qvariant.h b/WebCore/src/kwq/qt/qvariant.h
index 279fb8b..54b0cbc 100644
--- a/WebCore/src/kwq/qt/qvariant.h
+++ b/WebCore/src/kwq/qt/qvariant.h
@@ -26,6 +26,10 @@
#ifndef QVARIANT_H_
#define QVARIANT_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
typedef unsigned int uint;
class QString;
@@ -53,7 +57,6 @@ public:
QVariant(double);
QVariant(const QString &);
QVariant(const QVariant &);
-
~QVariant();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qvector.h b/WebCore/src/kwq/qt/qvector.h
index 2d4fec3..aabfb11 100644
--- a/WebCore/src/kwq/qt/qvector.h
+++ b/WebCore/src/kwq/qt/qvector.h
@@ -26,6 +26,10 @@
#ifndef QVECTOR_H_
#define QVECTOR_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <KWQDef.h>
#include <KWQCollection.h>
@@ -47,20 +51,18 @@ public:
// constructors, copy constructors, and destructors ------------------------
QGVector();
-
- virtual ~QGVector();
+ QGVector(const QGVector &);
+ ~QGVector();
// member functions --------------------------------------------------------
+
// operators ---------------------------------------------------------------
+ QGVector &operator=(const QGVector &);
+
// protected -------------------------------------------------------------------
// private ---------------------------------------------------------------------
-private:
- // no copying or assignment
- QGVector(const QGVector &);
- QGVector &operator=(const QGVector &);
-
}; // class QGVector ===========================================================
@@ -79,7 +81,6 @@ public:
QVector();
QVector(uint);
QVector(const QVector &);
-
~QVector();
// member functions --------------------------------------------------------
diff --git a/WebCore/src/kwq/qt/qwidget.h b/WebCore/src/kwq/qt/qwidget.h
index f0c2191..fc6db30 100644
--- a/WebCore/src/kwq/qt/qwidget.h
+++ b/WebCore/src/kwq/qt/qwidget.h
@@ -26,6 +26,10 @@
#ifndef QWIDGET_H_
#define QWIDGET_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "qobject.h"
#include "qpaintdevice.h"
#include "qpainter.h"
@@ -59,8 +63,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QWidget(QWidget *parent=0, const char *name=0, WFlags f=0);
-
- virtual ~QWidget();
+ ~QWidget();
// member functions --------------------------------------------------------
@@ -120,6 +123,7 @@ public:
private:
// no copying or assignment
+ // note that these are "standard" (no pendantic stuff needed)
QWidget(const QWidget &);
QWidget &operator=(const QWidget &);
diff --git a/WebCore/src/kwq/qt/qxml.h b/WebCore/src/kwq/qt/qxml.h
index 5935eb0..07d1065 100644
--- a/WebCore/src/kwq/qt/qxml.h
+++ b/WebCore/src/kwq/qt/qxml.h
@@ -26,6 +26,10 @@
#ifndef QXML_H_
#define QXML_H_
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
class QString;
// class QXmlAttributes ========================================================
@@ -42,7 +46,6 @@ public:
QXmlAttributes();
QXmlAttributes(const QXmlAttributes &);
-
virtual ~QXmlAttributes();
// member functions --------------------------------------------------------
@@ -75,7 +78,6 @@ public:
// constructors, copy constructors, and destructors ------------------------
QXmlInputSource();
-
virtual ~QXmlInputSource();
// member functions --------------------------------------------------------
@@ -88,30 +90,295 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlInputSource(const QXmlInputSource &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlInputSource &operator=(const QXmlInputSource &);
+#endif
-}; // class QXmlInputSource =====================================================
+}; // class QXmlInputSource ====================================================
-class QXmlDTDHandler {};
+// class QXmlDTDHandler ========================================================
-class QXmlDeclHandler {};
+class QXmlDTDHandler {
+public:
-class QXmlErrorHandler {};
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
-class QXmlLexicalHandler {};
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlDTDHandler() {}
+#endif
-class QXmlContentHandler {};
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler(const QXmlDTDHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDTDHandler &operator=(const QXmlDTDHandler &);
+#endif
+
+}; // class QXmlDTDHandler =====================================================
+
+
+// class QXmlDeclHandler ========================================================
+
+class QXmlDeclHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlDeclHandler() {}
+#endif
-class QXmlDefaultHandler :
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler(const QXmlDeclHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDeclHandler &operator=(const QXmlDeclHandler &);
+#endif
+
+}; // class QXmlDeclHandler =====================================================
+
+
+// class QXmlErrorHandler ========================================================
+
+class QXmlErrorHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlErrorHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler(const QXmlErrorHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlErrorHandler &operator=(const QXmlErrorHandler &);
+#endif
+
+}; // class QXmlErrorHandler =====================================================
+
+
+// class QXmlLexicalHandler ========================================================
+
+class QXmlLexicalHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlLexicalHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler(const QXmlLexicalHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlLexicalHandler &operator=(const QXmlLexicalHandler &);
+#endif
+
+}; // class QXmlLexicalHandler =====================================================
+
+
+// class QXmlContentHandler ========================================================
+
+class QXmlContentHandler {
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+// add no-arg constructor
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler() {}
+#endif
+
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlContentHandler() {}
+#endif
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler(const QXmlContentHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlContentHandler &operator=(const QXmlContentHandler &);
+#endif
+
+}; // class QXmlContentHandler =====================================================
+
+
+// class QXmlDefaultHandler ====================================================
+
+class QXmlDefaultHandler :
public QXmlContentHandler,
public QXmlLexicalHandler,
public QXmlErrorHandler,
public QXmlDeclHandler,
public QXmlDTDHandler {
-};
+
+public:
+
+ // structs -----------------------------------------------------------------
+ // typedefs ----------------------------------------------------------------
+ // enums -------------------------------------------------------------------
+ // constants ---------------------------------------------------------------
+ // static member functions -------------------------------------------------
+
+ // constructors, copy constructors, and destructors ------------------------
+
+ QXmlDefaultHandler() {}
+ virtual ~QXmlDefaultHandler();
+
+ // member functions --------------------------------------------------------
+ // operators ---------------------------------------------------------------
+
+// protected -------------------------------------------------------------------
+// private ---------------------------------------------------------------------
+
+private:
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
+ QXmlDefaultHandler(const QXmlDefaultHandler &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
+ QXmlDefaultHandler &operator=(const QXmlDefaultHandler &);
+#endif
+
+}; // class QXmlDefaultHandler =====================================================
// class QXmlSimpleReader ======================================================
@@ -126,8 +393,7 @@ public:
// constructors, copy constructors, and destructors ------------------------
QXmlSimpleReader();
-
- ~QXmlSimpleReader();
+ virtual ~QXmlSimpleReader();
// member functions --------------------------------------------------------
@@ -144,9 +410,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlSimpleReader(const QXmlSimpleReader &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlSimpleReader &operator=(const QXmlSimpleReader &);
+#endif
}; // class QXmlSimpleReader ===================================================
@@ -165,7 +440,10 @@ public:
QXmlParseException();
- ~QXmlParseException();
+// add no-op destructor
+#ifdef _KWQ_PEDANTIC_
+ ~QXmlParseException() {}
+#endif
// member functions --------------------------------------------------------
@@ -179,9 +457,18 @@ public:
// private ---------------------------------------------------------------------
private:
- // no copying or assignment
+
+// add copy constructor
+// this private declaration prevents copying
+#ifdef _KWQ_PEDANTIC_
QXmlParseException(const QXmlParseException &);
+#endif
+
+// add assignment operator
+// this private declaration prevents assignment
+#ifdef _KWQ_PEDANTIC_
QXmlParseException &operator=(const QXmlParseException &);
+#endif
}; // class QXmlParseException =================================================
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list