1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-30 22:52:03 +02:00
parent a3b20ee81e
commit 58cfae38ab
10 changed files with 12 additions and 12 deletions

View File

@ -37,6 +37,7 @@ ToxCall Core::calls[TOXAV_MAX_CALLS];
Core::Core(Camera* cam) :
tox(nullptr), camera(cam)
{
qDebug() << "A NEW CORE HAS STARTED !";
toxTimer = new QTimer(this);
toxTimer->setSingleShot(true);
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);
}
void Core::onAvReject(int32_t call_index, void* core)
void Core::onAvReject(int32_t, void*)
{
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);
}
void Core::onAvError(int32_t call_index, void* core)
void Core::onAvError(int32_t, void*)
{
qDebug() << "Core: AV error";
}

View File

@ -5,7 +5,7 @@
#include "widget/form/chatform.h"
#include "status.h"
class FriendWidget;
struct FriendWidget;
struct Friend
{

View File

@ -4,7 +4,7 @@
#include <QString>
#include <QList>
class Friend;
struct Friend;
class FriendList
{

View File

@ -7,7 +7,7 @@
#define RETRY_PEER_INFO_INTERVAL 500
class Friend;
struct Friend;
class GroupWidget;
class GroupChatForm;

View File

@ -179,7 +179,7 @@ vpx_image Camera::getLastVPXImage()
{
lastFrame.map(QAbstractVideoBuffer::ReadOnly);
int w = lastFrame.width(), h = lastFrame.height();
int bpl = lastFrame.bytesPerLine(), cxbpl = bpl/2;
int bpl = lastFrame.bytesPerLine();
vpx_image img;
vpx_img_alloc(&img, VPX_IMG_FMT_I420, w, h, 1); // I420 == YUV420P, same as YV12 with U and V switched

View File

@ -11,7 +11,7 @@
#include "core.h"
class ToxFile;
struct ToxFile;
class FileTransfertWidget : public QWidget
{

View File

@ -19,7 +19,7 @@
// Spacing in px inserted when the author of the last message changes
#define AUTHOR_CHANGE_SPACING 5
class Friend;
struct Friend;
class ChatForm : public QObject
{

View File

@ -21,7 +21,7 @@ bool VideoSurface::start(const QVideoSurfaceFormat &format)
}
}
bool VideoSurface::present(const QVideoFrame &frame)
bool VideoSurface::present(const QVideoFrame&)
{
/*
mFrame = frame;

View File

@ -44,7 +44,6 @@ Widget::Widget(QWidget *parent) :
qRegisterMetaType<ToxFile::FileDirection>("ToxFile::FileDirection");
core = new Core(camera);
core = new Core(nullptr);
coreThread = new QThread(this);
core->moveToThread(coreThread);
connect(coreThread, &QThread::started, core, &Core::start);

View File

@ -16,9 +16,9 @@ class Widget;
class GroupWidget;
class AddFriendForm;
class SettingsForm;
class FriendWidget;
struct FriendWidget;
class Group;
class Friend;
struct Friend;
class Widget : public QWidget
{