mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
use proper type for index in QLocale::monthName(), QLocale::standaloneMonthName(), QString QLocale::dayName() and QLocale::standaloneDayName()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
0cb4ecde7d
commit
f4a1d4ae2a
1 changed files with 4 additions and 4 deletions
|
@ -1702,7 +1702,7 @@ QString QLocale::monthName(int month, FormatType type) const
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const quint16 idx = month - 1;
|
const qint16 idx = month - 1;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QLocale::LongFormat:
|
case QLocale::LongFormat:
|
||||||
return getLocaleListData(d()->m_long_month_names, idx);
|
return getLocaleListData(d()->m_long_month_names, idx);
|
||||||
|
@ -1740,7 +1740,7 @@ QString QLocale::standaloneMonthName(int month, FormatType type) const
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const quint16 idx = month - 1;
|
const qint16 idx = month - 1;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QLocale::LongFormat:
|
case QLocale::LongFormat:
|
||||||
return getLocaleListData(d()->m_standalone_long_month_names, idx);
|
return getLocaleListData(d()->m_standalone_long_month_names, idx);
|
||||||
|
@ -1776,7 +1776,7 @@ QString QLocale::dayName(int day, FormatType type) const
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const quint16 idx = day - 1;
|
const qint16 idx = day - 1;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QLocale::LongFormat:
|
case QLocale::LongFormat:
|
||||||
return getLocaleListData(d()->m_long_day_names, idx);
|
return getLocaleListData(d()->m_long_day_names, idx);
|
||||||
|
@ -1815,7 +1815,7 @@ QString QLocale::standaloneDayName(int day, FormatType type) const
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
quint16 idx = day - 1;
|
const qint16 idx = day - 1;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QLocale::LongFormat:
|
case QLocale::LongFormat:
|
||||||
return getLocaleListData(d()->m_standalone_long_day_names, idx);
|
return getLocaleListData(d()->m_standalone_long_day_names, idx);
|
||||||
|
|
Loading…
Add table
Reference in a new issue