summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/qwaylandclipboard.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-05-10 08:09:44 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-05-30 15:23:25 (GMT)
commit55a440589c186e389390b2fd18170768901fa618 (patch)
tree9e7f0ec5d802a4ca2a9f174240eb7e90328f5f48 /src/plugins/platforms/wayland/qwaylandclipboard.h
parent1a17ab72726ba5d15396ee152c78a1aa921533a6 (diff)
downloadQt-55a440589c186e389390b2fd18170768901fa618.zip
Qt-55a440589c186e389390b2fd18170768901fa618.tar.gz
Qt-55a440589c186e389390b2fd18170768901fa618.tar.bz2
Remove const from QPlatformClipboard::mimeData().
Most implementations will anyway do non-const operations in there, the change avoids the need for const_cast or mutable.
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandclipboard.h')
-rw-r--r--src/plugins/platforms/wayland/qwaylandclipboard.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandclipboard.h b/src/plugins/platforms/wayland/qwaylandclipboard.h
index b0d6394..6a02254 100644
--- a/src/plugins/platforms/wayland/qwaylandclipboard.h
+++ b/src/plugins/platforms/wayland/qwaylandclipboard.h
@@ -57,7 +57,7 @@ public:
QWaylandClipboard(QWaylandDisplay *display);
~QWaylandClipboard();
- const QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard) const;
+ QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard);
void setMimeData(QMimeData *data, QClipboard::Mode mode = QClipboard::Clipboard);
bool supportsMode(QClipboard::Mode mode) const;
@@ -81,7 +81,7 @@ private:
QWaylandDisplay *mDisplay;
QWaylandSelection *mSelection;
- mutable QWaylandMimeData *mMimeDataIn;
+ QWaylandMimeData *mMimeDataIn;
QList<QWaylandSelection *> mSelections;
QStringList mOfferedMimeTypes;
struct wl_selection_offer *mOffer;