summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qclipboard.cpp
diff options
context:
space:
mode:
authorWenTao Song <songwentao@uniontech.com>2021-07-16 14:36:45 +0800
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-07-16 12:42:47 +0000
commitf6700870bd03d270e5485cc2af66b51579bee15d (patch)
tree4f3d7765dcddb8d11bbbaaef3add25e21f2b49bd /src/gui/kernel/qclipboard.cpp
parent49df693145bbd94afd0b65a57c5b93d7773ff886 (diff)
QClipboard: remove a useless default switch-case label
The switch condition expression has already dealt width all the conditions, so a `default` label is not necessary (it introduces a warning). Delete it. Fixes: QTBUG-95223 Change-Id: Iac3d9bb5d0b6fd8372d4dc16d920ce0a7b0511db Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui/kernel/qclipboard.cpp')
-rw-r--r--src/gui/kernel/qclipboard.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qclipboard.cpp b/src/gui/kernel/qclipboard.cpp
index 87fd222cb8..52d6bef391 100644
--- a/src/gui/kernel/qclipboard.cpp
+++ b/src/gui/kernel/qclipboard.cpp
@@ -582,9 +582,8 @@ void QClipboard::emitChanged(Mode mode)
case FindBuffer:
emit findBufferChanged();
break;
- default:
- break;
}
+
emit changed(mode);
}