diff options
author | João Abecasis <joao@abecasis.name> | 2009-10-07 07:44:18 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-10-07 10:44:41 (GMT) |
commit | 41a47906475f3970bd662c3d24e7e642ea65a191 (patch) | |
tree | bda10c4b1885e7754481749626b5dcbe5362c07a /demos | |
parent | 350410f19fd589986e51eba8f018abd92eddc287 (diff) | |
download | Qt-41a47906475f3970bd662c3d24e7e642ea65a191.zip Qt-41a47906475f3970bd662c3d24e7e642ea65a191.tar.gz Qt-41a47906475f3970bd662c3d24e7e642ea65a191.tar.bz2 |
Fixing some GCC warnings
Reviewed-by: Markus Goetz
Diffstat (limited to 'demos')
-rw-r--r-- | demos/browser/webview.cpp | 2 | ||||
-rw-r--r-- | demos/sub-attaq/graphicsscene.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/demos/browser/webview.cpp b/demos/browser/webview.cpp index e1d9b12..754fedc 100644 --- a/demos/browser/webview.cpp +++ b/demos/browser/webview.cpp @@ -151,6 +151,8 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) QFile file(QLatin1String(":/notfound.html")); bool isOpened = file.open(QIODevice::ReadOnly); Q_ASSERT(isOpened); + Q_UNUSED(isOpened) + QString title = tr("Error loading page: %1").arg(reply->url().toString()); QString html = QString(QLatin1String(file.readAll())) .arg(title) diff --git a/demos/sub-attaq/graphicsscene.cpp b/demos/sub-attaq/graphicsscene.cpp index 812eadf..e29095e 100644 --- a/demos/sub-attaq/graphicsscene.cpp +++ b/demos/sub-attaq/graphicsscene.cpp @@ -129,7 +129,7 @@ void GraphicsScene::setupScene(QAction *newAction, QAction *quitAction) { static const int nLetters = 10; static struct { - char *pix; + char const *pix; qreal initX, initY; qreal destX, destY; } logoData[nLetters] = { |