diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-05-10 08:09:44 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-05-30 15:23:25 (GMT) |
commit | 55a440589c186e389390b2fd18170768901fa618 (patch) | |
tree | 9e7f0ec5d802a4ca2a9f174240eb7e90328f5f48 /src/gui | |
parent | 1a17ab72726ba5d15396ee152c78a1aa921533a6 (diff) | |
download | Qt-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/gui')
-rw-r--r-- | src/gui/kernel/qplatformclipboard_qpa.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qplatformclipboard_qpa.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformclipboard_qpa.cpp b/src/gui/kernel/qplatformclipboard_qpa.cpp index 33d2afc..302df68 100644 --- a/src/gui/kernel/qplatformclipboard_qpa.cpp +++ b/src/gui/kernel/qplatformclipboard_qpa.cpp @@ -83,7 +83,7 @@ QPlatformClipboard::~QPlatformClipboard() } -const QMimeData *QPlatformClipboard::mimeData(QClipboard::Mode mode) const +QMimeData *QPlatformClipboard::mimeData(QClipboard::Mode mode) { //we know its clipboard Q_UNUSED(mode); diff --git a/src/gui/kernel/qplatformclipboard_qpa.h b/src/gui/kernel/qplatformclipboard_qpa.h index 5444a1f..e1be8aa 100644 --- a/src/gui/kernel/qplatformclipboard_qpa.h +++ b/src/gui/kernel/qplatformclipboard_qpa.h @@ -59,7 +59,7 @@ class Q_GUI_EXPORT QPlatformClipboard public: virtual ~QPlatformClipboard(); - virtual const QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard ) const; + virtual QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard); virtual void setMimeData(QMimeData *data, QClipboard::Mode mode = QClipboard::Clipboard); virtual bool supportsMode(QClipboard::Mode mode) const; void emitChanged(QClipboard::Mode mode); |