path: root/src/corelib
diff options
authorMarc Mutz <>2015-01-22 15:04:30 +0100
committerMarc Mutz <>2015-03-25 10:18:25 +0000
commit613449a58d3957267ed8abb0d629ebdac72ec6cb (patch)
treeb12af41b9fd71584e7f58a2dc4ab905e6ba2d905 /src/corelib
parent0b77e1b6112dfe8a159d6704fbdb940ba477b467 (diff)
QDate: don't spend code size covering the impossible case
All other similar functions in QDate just return an empty string in case none of the switch labels would trigger (which would now cause a compiler warning, after removing the default case label), so do that here, too. Saves 44B in text size. Change-Id: I80ee4975082706adcd15fe89511d08c67e149324 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp
index 324a30858d..82763ed983 100644
--- a/src/corelib/tools/qdatetime.cpp
+++ b/src/corelib/tools/qdatetime.cpp
@@ -762,7 +762,7 @@ QString QDate::longDayName(int weekday, MonthNameType type)
case QDate::StandaloneFormat:
return QLocale::system().standaloneDayName(weekday, QLocale::LongFormat);
- return QLocale::system().dayName(weekday, QLocale::LongFormat);
+ return QString();