Silence compiler warnings in qaccessiblequickitem.h.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Fri, 11 Jan 2013 15:21:19 +0000 (16:21 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 14 Jan 2013 13:07:57 +0000 (14:07 +0100)
Introduced by c8ef32e2b6cded37a6854b94a281464c1b7a298b.

Change-Id: I654009b38f0169254c05398468d4fe4c2737dd5b
Reviewed-by: Alan Alpert <aalpert@rim.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>

src/plugins/accessible/quick/qaccessiblequickitem.h

index c227ef7..e82b2f8 100644 (file)
@@ -82,15 +82,15 @@ public:
 
     // Text Interface
     // selection (ignored for now)
-    void selection(int selectionIndex, int *startOffset, int *endOffset) const { *startOffset = 0; *endOffset = 0; }
+    void selection(int /* selectionIndex */, int *startOffset, int *endOffset) const { *startOffset = 0; *endOffset = 0; }
     int selectionCount() const { return 0; }
-    void addSelection(int startOffset, int endOffset) {}
-    void removeSelection(int selectionIndex) {}
-    void setSelection(int selectionIndex, int startOffset, int endOffset) {}
+    void addSelection(int /* startOffset */, int /* endOffset */) {}
+    void removeSelection(int /* selectionIndex */) {}
+    void setSelection(int /* selectionIndex */, int /* startOffset */, int /* endOffset */) {}
 
     // cursor
     int cursorPosition() const { return 0; }
-    void setCursorPosition(int position) {}
+    void setCursorPosition(int /* position */) {}
 
     // text
     QString text(int startOffset, int endOffset) const { return text(QAccessible::Name).mid(startOffset, endOffset - startOffset); }
@@ -103,11 +103,11 @@ public:
     int characterCount() const { return text(QAccessible::Name).count(); }
 
     // character <-> geometry
-    QRect characterRect(int offset) const { return QRect(); }
-    int offsetAtPoint(const QPoint &point) const { return -1; }
+    QRect characterRect(int /* offset */) const { return QRect(); }
+    int offsetAtPoint(const QPoint & /* point */) const { return -1; }
 
-    void scrollToSubstring(int startIndex, int endIndex) {}
-    QString attributes(int offset, int *startOffset, int *endOffset) const { return QString(); }
+    void scrollToSubstring(int /* startIndex */, int /* endIndex */) {}
+    QString attributes(int /* offset */, int * /* startOffset */, int * /* endOffset */) const { return QString(); }
 
 protected:
     QQuickItem *item() const { return static_cast<QQuickItem*>(object()); }