Remove spurious Q_FALLTHROUGH()
Two cases with no code between them don't need a fall-through marker. The only code in the first case is subject to #if-ery; it either returns, without falling through, or has no code there. Putting in an overt Q_FALLTHROUGH() confused a rather dumb compiler ... Change-Id: Icc034be08859cc1656401af1c62367aec302668b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
eeb6ceb192
commit
41418a92b7
@ -152,10 +152,7 @@ QString QSystemError::string(ErrorScope errorScope, int errorCode)
|
||||
case NativeError:
|
||||
#if defined (Q_OS_WIN)
|
||||
return windowsErrorString(errorCode);
|
||||
#else
|
||||
//unix: fall through as native and standard library are the same
|
||||
Q_FALLTHROUGH();
|
||||
#endif
|
||||
#endif // else unix: native and standard library are the same
|
||||
case StandardLibraryError:
|
||||
return standardLibraryErrorString(errorCode);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user