qtwrapper: Resolve type discrepancy in fileTransferInfo.

* src/qtwrapper/configurationmanager_wrap.h (fileTransferInfo)
<int64_t&>: Change type of TOTAL and PROGRESS to qlonglong&.  Convert
to int64_t via reinterpret_cast.  This is safe as both types are
guaranteed to be 64 bits.

Change-Id: I91d7e12e751ef5e4d07ac4647b4e99a15b05b507
parent cf359be9
/******************************************************************************
* Copyright (C) 2014-2021 Savoir-faire Linux Inc. *
* Copyright (C) 2014-2021 Savoir-faire Linux Inc. *
* Author : Philippe Groarke <philippe.groarke@savoirfairelinux.com> *
* Author : Alexandre Lision <alexandre.lision@savoirfairelinux.com> *
* *
......@@ -860,16 +860,16 @@ public Q_SLOTS: // METHODS
QString conversationId,
QString fileId,
QString& path,
int64_t& total,
int64_t& progress)
qlonglong& total,
qlonglong& progress)
{
std::string pathstr;
auto result = uint32_t(DRing::fileTransferInfo(accountId.toStdString(),
conversationId.toStdString(),
fileId.toStdString(),
pathstr,
total,
progress));
reinterpret_cast<int64_t&>(total),
reinterpret_cast<int64_t&>(progress)));
path = pathstr.c_str();
return result;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment