Add some missing breaks in switch statements
Found by GCC 7. Change-Id: I90267617a038558e5b5213c598a949baf8d4d9be Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
7f80c96432
commit
38bbd8fbac
@ -117,11 +117,13 @@ bool GSuggestCompletion::eventFilter(QObject *obj, QEvent *ev)
|
|||||||
case Qt::Key_Return:
|
case Qt::Key_Return:
|
||||||
doneCompletion();
|
doneCompletion();
|
||||||
consumed = true;
|
consumed = true;
|
||||||
|
break;
|
||||||
|
|
||||||
case Qt::Key_Escape:
|
case Qt::Key_Escape:
|
||||||
editor->setFocus();
|
editor->setFocus();
|
||||||
popup->hide();
|
popup->hide();
|
||||||
consumed = true;
|
consumed = true;
|
||||||
|
break;
|
||||||
|
|
||||||
case Qt::Key_Up:
|
case Qt::Key_Up:
|
||||||
case Qt::Key_Down:
|
case Qt::Key_Down:
|
||||||
|
@ -1721,10 +1721,10 @@ void tst_QMetaType::metaObject()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define METATYPE_ID_FUNCTION(Type, MetaTypeId, Name) \
|
#define METATYPE_ID_FUNCTION(Type, MetaTypeId, Name) \
|
||||||
case ::qMetaTypeId< Name >(): metaType = MetaTypeIdStruct<MetaTypeId>::Value;
|
case ::qMetaTypeId< Name >(): metaType = MetaTypeIdStruct<MetaTypeId>::Value; break;
|
||||||
|
|
||||||
#define REGISTER_METATYPE_FUNCTION(Type, MetaTypeId, Name) \
|
#define REGISTER_METATYPE_FUNCTION(Type, MetaTypeId, Name) \
|
||||||
case qRegisterMetaType< Name >(): metaType = RegisterMetaTypeStruct<MetaTypeId>::Value;
|
case qRegisterMetaType< Name >(): metaType = RegisterMetaTypeStruct<MetaTypeId>::Value; break;
|
||||||
|
|
||||||
template<int>
|
template<int>
|
||||||
struct MetaTypeIdStruct
|
struct MetaTypeIdStruct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user