mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Ref T28, minor improvements
This commit is contained in:
committed by
Mathew Sutcliffe
parent
c3ed0bc394
commit
c0320609b3
@@ -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;
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user