Misc: Fix MSVC warnings

C4573: the usage of 'QObject::connect' requires the compiler to capture 'this' but the current default capture mode does not allow it

and implicit conversions from size_t to int

Change-Id: If9b4ba3103cadd5b2a38ba7072d05aa1488a87bb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2020-02-24 10:24:11 +02:00
committed by Orgad Shaneh
parent 9b5e642400
commit dd0efea95d
4 changed files with 11 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ class GitLogFilterWidget : public QToolBar
public:
GitLogFilterWidget(GitEditorWidget *editor)
{
auto addLineEdit = [](const QString &placeholder,
auto addLineEdit = [this](const QString &placeholder,
const QString &tooltip,
GitEditorWidget *editor)
{