summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-01-22 14:57:32 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-03-25 10:18:19 +0000
commit0b77e1b6112dfe8a159d6704fbdb940ba477b467 (patch)
tree94aacd5c8bdbd8566141c71246d692200123c26d /src/corelib
parentc885efb3cd3835bfd565575a450235cc8a7983a9 (diff)
QDate: remove some useless default case labels
They're pure whitespace, since in each case there is a fallback after the switch, anyway, and their presence prevents compiler warnings about unhandled enumeration values in switch statements, which is nice-to-have, when adding to the enum, eventually. No change in executable code size. Change-Id: I77aecaeff990601f957ec9ee827eff5ead25aaa1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qdatetime.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp
index 505a6f863b..324a30858d 100644
--- a/src/corelib/tools/qdatetime.cpp
+++ b/src/corelib/tools/qdatetime.cpp
@@ -636,8 +636,6 @@ QString QDate::shortMonthName(int month, QDate::MonthNameType type)
return QLocale::system().monthName(month, QLocale::ShortFormat);
case QDate::StandaloneFormat:
return QLocale::system().standaloneMonthName(month, QLocale::ShortFormat);
- default:
- break;
}
return QString();
}
@@ -683,8 +681,6 @@ QString QDate::longMonthName(int month, MonthNameType type)
return QLocale::system().monthName(month, QLocale::LongFormat);
case QDate::StandaloneFormat:
return QLocale::system().standaloneMonthName(month, QLocale::LongFormat);
- default:
- break;
}
return QString();
}
@@ -725,8 +721,6 @@ QString QDate::shortDayName(int weekday, MonthNameType type)
return QLocale::system().dayName(weekday, QLocale::ShortFormat);
case QDate::StandaloneFormat:
return QLocale::system().standaloneDayName(weekday, QLocale::ShortFormat);
- default:
- break;
}
return QString();
}
@@ -767,8 +761,6 @@ QString QDate::longDayName(int weekday, MonthNameType type)
return QLocale::system().dayName(weekday, QLocale::LongFormat);
case QDate::StandaloneFormat:
return QLocale::system().standaloneDayName(weekday, QLocale::LongFormat);
- default:
- break;
}
return QLocale::system().dayName(weekday, QLocale::LongFormat);
}