diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-01 10:28:00 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-01 10:28:00 +0100 |
commit | a788f7e3a04ec741d59ef458a40e39d918dc1df0 (patch) | |
tree | d604e4f206473b125c335b61487d833fd0926af4 /tools/designer/src/designer | |
parent | f3da2f414f9fce9aa014da79be9f50c075c60936 (diff) | |
download | qt4-tools-a788f7e3a04ec741d59ef458a40e39d918dc1df0.tar.gz |
Designer/uic/related examples: Fix source code scanning issues II.
Fix spelling errors, foreach()/QString usage, explicit constructors.
Reviewed-By: Joerg Bornemann <joerg.bornemann@trolltech.com>
Diffstat (limited to 'tools/designer/src/designer')
-rw-r--r-- | tools/designer/src/designer/qdesigner_server.h | 2 | ||||
-rw-r--r-- | tools/designer/src/designer/versiondialog.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/designer/src/designer/qdesigner_server.h b/tools/designer/src/designer/qdesigner_server.h index d522056c02..90cc624316 100644 --- a/tools/designer/src/designer/qdesigner_server.h +++ b/tools/designer/src/designer/qdesigner_server.h @@ -74,7 +74,7 @@ class QDesignerClient: public QObject { Q_OBJECT public: - QDesignerClient(quint16 port, QObject *parent = 0); + explicit QDesignerClient(quint16 port, QObject *parent = 0); virtual ~QDesignerClient(); private slots: diff --git a/tools/designer/src/designer/versiondialog.cpp b/tools/designer/src/designer/versiondialog.cpp index 51f546daee..d9b03aa6eb 100644 --- a/tools/designer/src/designer/versiondialog.cpp +++ b/tools/designer/src/designer/versiondialog.cpp @@ -113,15 +113,14 @@ void VersionLabel::mouseReleaseEvent(QMouseEvent *me) if (!secondStage) { m_path.lineTo(me->pos()); bool gotIt = true; - QPoint pt; - foreach(pt, hitPoints) { + foreach(const QPoint &pt, hitPoints) { if (!m_path.contains(pt)) { gotIt = false; break; } } if (gotIt) { - foreach(pt, missPoints) { + foreach(const QPoint &pt, missPoints) { if (m_path.contains(pt)) { gotIt = false; break; |