mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(build): Elimination the build warnings (Wunused-variable, Wreorder)
This commit is contained in:
parent
83d4a21ef6
commit
2cd65610fc
|
@ -29,8 +29,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ToxCall::ToxCall(uint32_t CallId, bool VideoEnabled, CoreAV& av)
|
ToxCall::ToxCall(uint32_t CallId, bool VideoEnabled, CoreAV& av)
|
||||||
: videoEnabled{VideoEnabled}
|
: av{&av}
|
||||||
, av{&av}
|
, videoEnabled{VideoEnabled}
|
||||||
{
|
{
|
||||||
Audio& audio = Audio::getInstance();
|
Audio& audio = Audio::getInstance();
|
||||||
audio.subscribeInput();
|
audio.subscribeInput();
|
||||||
|
|
|
@ -759,7 +759,6 @@ void ChatForm::handleLoadedMessages(QList<History::HistMessage> newHistMsgs, boo
|
||||||
ToxPk prevIdBackup = previousId;
|
ToxPk prevIdBackup = previousId;
|
||||||
previousId = ToxPk{};
|
previousId = ToxPk{};
|
||||||
QList<ChatLine::Ptr> chatLines;
|
QList<ChatLine::Ptr> chatLines;
|
||||||
Core* core = Core::getInstance();
|
|
||||||
QDate lastDate(1, 0, 0);
|
QDate lastDate(1, 0, 0);
|
||||||
for (const auto& histMessage : newHistMsgs) {
|
for (const auto& histMessage : newHistMsgs) {
|
||||||
MessageMetadata const metadata = getMessageMetadata(histMessage);
|
MessageMetadata const metadata = getMessageMetadata(histMessage);
|
||||||
|
|
|
@ -117,8 +117,8 @@ private:
|
||||||
const ToxPk authorPk;
|
const ToxPk authorPk;
|
||||||
const QDateTime msgDateTime;
|
const QDateTime msgDateTime;
|
||||||
MessageMetadata(bool isSelf, bool needSending, bool isAction, qint64 id, ToxPk authorPk, QDateTime msgDateTime) :
|
MessageMetadata(bool isSelf, bool needSending, bool isAction, qint64 id, ToxPk authorPk, QDateTime msgDateTime) :
|
||||||
needSending{needSending},
|
|
||||||
isSelf{isSelf},
|
isSelf{isSelf},
|
||||||
|
needSending{needSending},
|
||||||
isAction{isAction},
|
isAction{isAction},
|
||||||
id{id},
|
id{id},
|
||||||
authorPk{authorPk},
|
authorPk{authorPk},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user