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>
bb10
Marc Mutz 2015-01-22 15:04:30 +01:00
parent 0b77e1b611
commit 613449a58d
1 changed files with 1 additions and 1 deletions

View File

@ -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