mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Comply with Wmaybe-uninitialized
This commit is contained in:
parent
bda1a6a909
commit
17043dbc45
|
@ -926,7 +926,7 @@ void Core::onUserStatusChanged(Tox*, uint32_t friendId, Tox_User_Status userstat
|
||||||
void Core::onConnectionStatusChanged(Tox*, uint32_t friendId, Tox_Connection status, void* vCore)
|
void Core::onConnectionStatusChanged(Tox*, uint32_t friendId, Tox_Connection status, void* vCore)
|
||||||
{
|
{
|
||||||
Core* core = static_cast<Core*>(vCore);
|
Core* core = static_cast<Core*>(vCore);
|
||||||
Status::Status friendStatus;
|
Status::Status friendStatus = Status::Status::Offline;
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
case TOX_CONNECTION_NONE:
|
case TOX_CONNECTION_NONE:
|
||||||
|
|
|
@ -140,7 +140,7 @@ static IBaseFilter* getDevFilter(QString devName)
|
||||||
LPMALLOC coMalloc = nullptr;
|
LPMALLOC coMalloc = nullptr;
|
||||||
IBindCtx* bindCtx = nullptr;
|
IBindCtx* bindCtx = nullptr;
|
||||||
LPOLESTR olestr = nullptr;
|
LPOLESTR olestr = nullptr;
|
||||||
char* devIdString;
|
char* devIdString = nullptr;
|
||||||
|
|
||||||
if (CoGetMalloc(1, &coMalloc) != S_OK)
|
if (CoGetMalloc(1, &coMalloc) != S_OK)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user