OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d9ccb1
)
avoid temporary in QCalendarDateValidator::currentText() const
author
Ivailo Monev
<xakepa10@laimg.moc>
Fri, 27 Dec 2019 12:10:39 +0000
(12:10 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Fri, 27 Dec 2019 12:10:39 +0000
(12:10 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/widgets/qcalendarwidget.cpp
patch
|
blob
|
history
diff --git
a/src/gui/widgets/qcalendarwidget.cpp
b/src/gui/widgets/qcalendarwidget.cpp
index
ed72c32
..
29e71ba
100644
(file)
--- a/
src/gui/widgets/qcalendarwidget.cpp
+++ b/
src/gui/widgets/qcalendarwidget.cpp
@@
-543,10
+543,9
@@
void QCalendarDateValidator::setInitialDate(const QDate &date)
QString QCalendarDateValidator::currentText() const
{
QString str;
- QStringListIterator itSep(m_separators);
QListIterator<SectionToken *> itTok(m_tokens);
-
while (itSep.hasNext()
) {
- str += itSep
.next()
;
+
foreach (const QString &itSep, m_separators
) {
+ str += itSep;
if (itTok.hasNext()) {
SectionToken *token = itTok.next();
QCalendarDateSectionValidator *validator = token->validator;