1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix clang warnings

It complained about row being used uninitialized, though it was a spurious warning
This commit is contained in:
Dubslow 2015-02-15 05:15:46 -06:00
parent e2ca10977f
commit b17b915dfc
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
2 changed files with 3 additions and 4 deletions

View File

@ -262,9 +262,6 @@ void ChatLog::mouseMoveEvent(QMouseEvent* ev)
ChatLineContent* content = getContentFromPos(scenePos);
ChatLine::Ptr line = findLineByPosY(scenePos.y());
if(!content && !line.get())
return;
int row;
if(content)
@ -298,6 +295,8 @@ void ChatLog::mouseMoveEvent(QMouseEvent* ev)
}
}
else
return;
if(row >= selClickedRow)
selLastRow = row;

View File

@ -29,7 +29,7 @@ class QGraphicsRectItem;
class QMouseEvent;
class QTimer;
class ChatLineContent;
class ToxFile;
struct ToxFile;
class ChatLog : public QGraphicsView
{