mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix warnings, typos
This commit is contained in:
parent
a3b20ee81e
commit
58cfae38ab
5
core.cpp
5
core.cpp
|
@ -37,6 +37,7 @@ ToxCall Core::calls[TOXAV_MAX_CALLS];
|
||||||
Core::Core(Camera* cam) :
|
Core::Core(Camera* cam) :
|
||||||
tox(nullptr), camera(cam)
|
tox(nullptr), camera(cam)
|
||||||
{
|
{
|
||||||
|
qDebug() << "A NEW CORE HAS STARTED !";
|
||||||
toxTimer = new QTimer(this);
|
toxTimer = new QTimer(this);
|
||||||
toxTimer->setSingleShot(true);
|
toxTimer->setSingleShot(true);
|
||||||
saveTimer = new QTimer(this);
|
saveTimer = new QTimer(this);
|
||||||
|
@ -934,7 +935,7 @@ void Core::onAvCancel(int32_t call_index, void* core)
|
||||||
emit static_cast<Core*>(core)->avCancel(friendId, call_index);
|
emit static_cast<Core*>(core)->avCancel(friendId, call_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Core::onAvReject(int32_t call_index, void* core)
|
void Core::onAvReject(int32_t, void*)
|
||||||
{
|
{
|
||||||
qDebug() << "Core: AV reject";
|
qDebug() << "Core: AV reject";
|
||||||
}
|
}
|
||||||
|
@ -1013,7 +1014,7 @@ void Core::onAvEnding(int32_t call_index, void* core)
|
||||||
emit static_cast<Core*>(core)->avEnding(friendId, call_index);
|
emit static_cast<Core*>(core)->avEnding(friendId, call_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Core::onAvError(int32_t call_index, void* core)
|
void Core::onAvError(int32_t, void*)
|
||||||
{
|
{
|
||||||
qDebug() << "Core: AV error";
|
qDebug() << "Core: AV error";
|
||||||
}
|
}
|
||||||
|
|
2
friend.h
2
friend.h
|
@ -5,7 +5,7 @@
|
||||||
#include "widget/form/chatform.h"
|
#include "widget/form/chatform.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
|
|
||||||
class FriendWidget;
|
struct FriendWidget;
|
||||||
|
|
||||||
struct Friend
|
struct Friend
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
|
||||||
class Friend;
|
struct Friend;
|
||||||
|
|
||||||
class FriendList
|
class FriendList
|
||||||
{
|
{
|
||||||
|
|
2
group.h
2
group.h
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#define RETRY_PEER_INFO_INTERVAL 500
|
#define RETRY_PEER_INFO_INTERVAL 500
|
||||||
|
|
||||||
class Friend;
|
struct Friend;
|
||||||
class GroupWidget;
|
class GroupWidget;
|
||||||
class GroupChatForm;
|
class GroupChatForm;
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ vpx_image Camera::getLastVPXImage()
|
||||||
{
|
{
|
||||||
lastFrame.map(QAbstractVideoBuffer::ReadOnly);
|
lastFrame.map(QAbstractVideoBuffer::ReadOnly);
|
||||||
int w = lastFrame.width(), h = lastFrame.height();
|
int w = lastFrame.width(), h = lastFrame.height();
|
||||||
int bpl = lastFrame.bytesPerLine(), cxbpl = bpl/2;
|
int bpl = lastFrame.bytesPerLine();
|
||||||
vpx_image img;
|
vpx_image img;
|
||||||
vpx_img_alloc(&img, VPX_IMG_FMT_I420, w, h, 1); // I420 == YUV420P, same as YV12 with U and V switched
|
vpx_img_alloc(&img, VPX_IMG_FMT_I420, w, h, 1); // I420 == YUV420P, same as YV12 with U and V switched
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
class ToxFile;
|
struct ToxFile;
|
||||||
|
|
||||||
class FileTransfertWidget : public QWidget
|
class FileTransfertWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// Spacing in px inserted when the author of the last message changes
|
// Spacing in px inserted when the author of the last message changes
|
||||||
#define AUTHOR_CHANGE_SPACING 5
|
#define AUTHOR_CHANGE_SPACING 5
|
||||||
|
|
||||||
class Friend;
|
struct Friend;
|
||||||
|
|
||||||
class ChatForm : public QObject
|
class ChatForm : public QObject
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@ bool VideoSurface::start(const QVideoSurfaceFormat &format)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VideoSurface::present(const QVideoFrame &frame)
|
bool VideoSurface::present(const QVideoFrame&)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
mFrame = frame;
|
mFrame = frame;
|
||||||
|
|
|
@ -44,7 +44,6 @@ Widget::Widget(QWidget *parent) :
|
||||||
qRegisterMetaType<ToxFile::FileDirection>("ToxFile::FileDirection");
|
qRegisterMetaType<ToxFile::FileDirection>("ToxFile::FileDirection");
|
||||||
|
|
||||||
core = new Core(camera);
|
core = new Core(camera);
|
||||||
core = new Core(nullptr);
|
|
||||||
coreThread = new QThread(this);
|
coreThread = new QThread(this);
|
||||||
core->moveToThread(coreThread);
|
core->moveToThread(coreThread);
|
||||||
connect(coreThread, &QThread::started, core, &Core::start);
|
connect(coreThread, &QThread::started, core, &Core::start);
|
||||||
|
|
|
@ -16,9 +16,9 @@ class Widget;
|
||||||
class GroupWidget;
|
class GroupWidget;
|
||||||
class AddFriendForm;
|
class AddFriendForm;
|
||||||
class SettingsForm;
|
class SettingsForm;
|
||||||
class FriendWidget;
|
struct FriendWidget;
|
||||||
class Group;
|
class Group;
|
||||||
class Friend;
|
struct Friend;
|
||||||
|
|
||||||
class Widget : public QWidget
|
class Widget : public QWidget
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user