From 2212b5eafd126bbf522f22fc7f27175b1d889368 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 18 Feb 2017 17:29:23 -0500 Subject: [PATCH] remove breaks which will never be reached --- src/TerminalDisplay.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp index 114fbc12..1ba569b3 100644 --- a/src/TerminalDisplay.cpp +++ b/src/TerminalDisplay.cpp @@ -2966,14 +2966,11 @@ QVariant TerminalDisplay::inputMethodQuery(Qt::InputMethodQuery query) const switch (query) { case Qt::ImMicroFocus: return imageToWidget(QRect(cursorPos.x(), cursorPos.y(), 1, 1)); - break; case Qt::ImFont: return font(); - break; case Qt::ImCursorPosition: // return the cursor position within the current line return cursorPos.x(); - break; case Qt::ImSurroundingText: { // return the text from the current line QString lineText; @@ -2984,10 +2981,8 @@ QVariant TerminalDisplay::inputMethodQuery(Qt::InputMethodQuery query) const decoder.end(); return lineText; } - break; case Qt::ImCurrentSelection: return QString(); - break; default: break; }