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:
9b37d78
)
rely on the fact that default QTime constructor is for null-time in QTime::fromString()
author
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 28 Dec 2019 23:14:34 +0000
(23:14 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Sat, 28 Dec 2019 23:14:34 +0000
(23:14 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/tools/qdatetime.cpp
patch
|
blob
|
history
diff --git
a/src/core/tools/qdatetime.cpp
b/src/core/tools/qdatetime.cpp
index
835f0fa
..
b991e3f
100644
(file)
--- a/
src/core/tools/qdatetime.cpp
+++ b/
src/core/tools/qdatetime.cpp
@@
-1662,9
+1662,7
@@
int QTime::msecsTo(const QTime &t) const
QTime QTime::fromString(const QString& s, Qt::DateFormat f)
{
if (s.isEmpty()) {
- QTime t;
- t.mds = NullTime;
- return t;
+ return QTime();
}
switch (f) {