diff options
| author | Kevin Wu Won <kevin.wu-won@nokia.com> | 2010-02-05 15:02:11 +1000 |
|---|---|---|
| committer | Kevin Wu Won <kevin.wu-won@nokia.com> | 2010-02-05 15:03:53 +1000 |
| commit | 69c2aa265d2a1cf82c4222447527095172d37ee1 (patch) | |
| tree | e40c09e6bef41e1b4885ebee9a679677bd52a7fd /doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp | |
| parent | fc64ec5b72e855080dc86c04a8e09274fe5e5161 (diff) | |
Fixed compiler warnings.
Diffstat (limited to 'doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp')
| -rw-r--r-- | doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp b/doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp index 521888651e..5f12351814 100644 --- a/doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp +++ b/doc/src/snippets/qtversitdocsample/qtversitdocsample.cpp @@ -64,10 +64,12 @@ class MyDetailHandler : public QVersitContactExporterDetailHandler { public: bool preProcessDetail(const QContact& contact, const QContactDetail& detail, QVersitDocument* document) { + Q_UNUSED(contact) Q_UNUSED(detail) Q_UNUSED(document) return false; } bool postProcessDetail(const QContact& contact, const QContactDetail& detail, bool alreadyProcessed, QVersitDocument* document) { + Q_UNUSED(contact) Q_UNUSED(document) if (!alreadyProcessed) mUnknownDetails.append(detail); return false; @@ -81,10 +83,12 @@ class MyPropertyHandler : public QVersitContactImporterPropertyHandler { public: bool preProcessProperty(const QVersitDocument& document, const QVersitProperty& property, int contactIndex, QContact* contact) { + Q_UNUSED(document) Q_UNUSED(property) Q_UNUSED(contactIndex) Q_UNUSED(contact) return false; } bool postProcessProperty(const QVersitDocument& document, const QVersitProperty& property, bool alreadyProcessed, int contactIndex, QContact* contact) { + Q_UNUSED(document) Q_UNUSED(contactIndex) Q_UNUSED(contact) if (!alreadyProcessed) mUnknownProperties.append(property); return false; @@ -98,6 +102,7 @@ class MyResourceHandler : public QVersitDefaultResourceHandler { public: bool saveResource(const QByteArray& contents, const QVersitProperty& property, QString* location) { + Q_UNUSED(property) *location = QString::number(qrand()); QFile file(*location); file.open(QIODevice::WriteOnly); |
