Ref T28, minor improvements

This commit is contained in:
Klaus Basan
2017-05-04 01:47:58 +02:00
committed by Mathew Sutcliffe
parent c3ed0bc394
commit c0320609b3
2 changed files with 2 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ namespace BlackMisc
QString CUrl::appendQuery(const QString &queryToAppend) QString CUrl::appendQuery(const QString &queryToAppend)
{ {
if (queryToAppend.isEmpty()) { return m_query; }
const QString q(stripQueryString(queryToAppend)); const QString q(stripQueryString(queryToAppend));
if (q.isEmpty()) { return m_query; } if (q.isEmpty()) { return m_query; }
m_query += hasQuery() ? "&" + q : q; m_query += hasQuery() ? "&" + q : q;

View File

@@ -31,7 +31,7 @@ namespace BlackMisc
QDateTime ITimestampBased::getUtcTimestamp() const QDateTime ITimestampBased::getUtcTimestamp() const
{ {
if (this->m_timestampMSecsSinceEpoch < 0) { return QDateTime(); } if (this->m_timestampMSecsSinceEpoch < 0) { return QDateTime(); }
return QDateTime::fromMSecsSinceEpoch(this->m_timestampMSecsSinceEpoch, Qt::UTC); return QDateTime::fromMSecsSinceEpoch(this->m_timestampMSecsSinceEpoch);
} }
void ITimestampBased::setTimestampToNull() void ITimestampBased::setTimestampToNull()