mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -72,7 +72,7 @@ namespace BlackMisc
|
||||
|
||||
QString CRemoteFile::getFormattedCreatedYmdhms() const
|
||||
{
|
||||
if (m_created < 1) { return ""; }
|
||||
if (m_created < 1) { return {}; }
|
||||
const QDateTime dt = QDateTime::fromMSecsSinceEpoch(m_created);
|
||||
return dt.toString("yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user