diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-01-22 15:04:30 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-03-25 10:18:25 +0000 |
commit | 613449a58d3957267ed8abb0d629ebdac72ec6cb (patch) | |
tree | b12af41b9fd71584e7f58a2dc4ab905e6ba2d905 /src/corelib/tools/qdatetime.cpp | |
parent | 0b77e1b6112dfe8a159d6704fbdb940ba477b467 (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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qdatetime.cpp')
-rw-r--r-- | src/corelib/tools/qdatetime.cpp | 2 |
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(); } #endif //QT_NO_TEXTDATE |