-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace QDateTime::fromTime_t with QDateTime::fromSecsSinceEpoch #349
Conversation
Concept ACK. Interesting that there are no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are passing the wrong type. Otherwise Concept ACK
Concept ACK. No longer scripted-diff. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
cr ACK 4f5e9fe |
Added one additional commit to replace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK bd533e7, (will look into CI failures)
$ git grep fromTime_t | wc -l
0
$ git grep toTime_t | wc -l
0
Maybe update the OP to mention the second commit changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK
@@ -234,7 +234,7 @@ bool RecentRequestEntryLessThan::operator()(const RecentRequestEntry& left, cons | |||
switch(column) | |||
{ | |||
case RecentRequestsTableModel::Date: | |||
return pLeft->date.toTime_t() < pRight->date.toTime_t(); | |||
return pLeft->date.toSecsSinceEpoch() < pRight->date.toSecsSinceEpoch(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope, but I wonder why bool QDateTime::operator<
is not used directly, without toTimeT()/toSecsSinceEpoch()
?
cr ACK bfcde3e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach ACK bfcde3e.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 3ae503c
QDateTime::fromTime_t
has been obsoleted in favour ofQDateTime::fromSecsSinceEpoch
, which is available from Qt 5.8+.