OSDN Git Service

QmlEditor: Fix gcc warnings
authorKai Koehne <kai.koehne@nokia.com>
Tue, 28 Sep 2010 08:32:50 +0000 (10:32 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Tue, 28 Sep 2010 08:33:57 +0000 (10:33 +0200)
src/libs/qmleditorwidgets/contextpanewidgetimage.cpp

index bcc7949..80d7b4d 100644 (file)
@@ -465,10 +465,10 @@ void ContextPaneWidgetImage::setPixmap(const QString &fileName)
         if (QFile(fileName).exists()) {
             if (fileName.endsWith(QLatin1String("sci"))) {
                 QString pixmapFileName;
-                int left;
-                int right;
-                int top;
-                int bottom;
+                int left = -1;
+                int right = -1;
+                int top = -1;
+                int bottom = -1;
                 Qt::TileRule horizontalTileRule;
                 Qt::TileRule verticalTileRule;
                 if (parseSciFile(fileName, pixmapFileName, left, right, top, bottom, horizontalTileRule, verticalTileRule)) {