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

@@ -472,7 +472,7 @@ BinEditorFactory::BinEditorFactory()
setDisplayName(QCoreApplication::translate("OpenWith::Editors", Constants::C_BINEDITOR_DISPLAY_NAME));
addMimeType(Constants::C_BINEDITOR_MIMETYPE);
setEditorCreator([] {
setEditorCreator([this] {
auto widget = new BinEditorWidget();
auto editor = new BinEditor(widget);