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:
parent
e2ca10977f
commit
b17b915dfc
|
@ -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;
|
||||
|
|
|
@ -29,7 +29,7 @@ class QGraphicsRectItem;
|
|||
class QMouseEvent;
|
||||
class QTimer;
|
||||
class ChatLineContent;
|
||||
class ToxFile;
|
||||
struct ToxFile;
|
||||
|
||||
class ChatLog : public QGraphicsView
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user