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:
987a0e2
)
avoid temporary in QDateTimeEditPrivate::stepBy()
author
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 22 Jun 2020 17:58:02 +0000
(17:58 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 22 Jun 2020 17:58:02 +0000
(17:58 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/widgets/qdatetimeedit.cpp
patch
|
blob
|
history
diff --git
a/src/gui/widgets/qdatetimeedit.cpp
b/src/gui/widgets/qdatetimeedit.cpp
index
34544ad
..
6cc2447
100644
(file)
--- a/
src/gui/widgets/qdatetimeedit.cpp
+++ b/
src/gui/widgets/qdatetimeedit.cpp
@@
-1897,8
+1897,7
@@
QDateTime QDateTimeEditPrivate::stepBy(int sectionIndex, int steps, bool test) c
}
}
- const QDateTime ret = bound(v, value, steps).toDateTime().toTimeSpec(spec);
- return ret;
+ return bound(v, value, steps).toDateTime().toTimeSpec(spec);
}
/*!