Commit 8e2ccd28 authored by Alessandro Portale's avatar Alessandro Portale Committed by Christian Stenger
Browse files

VcsBase: Fix compilation with msvc2010

basevcseditorfactory.cpp(78) : error C3499: a lambda that has been
specified to have a void return type cannot return a value

Change-Id: I9f6846a3d55d8e8e8014386a6fd899091f1e379b
Reviewed-by: default avatarChristian Stenger <>
parent d8fad00f
......@@ -64,14 +64,14 @@ VcsEditorFactory::VcsEditorFactory(const VcsBaseEditorParameters *parameters,
setEditorActionHandlers(parameters->context, TextEditorActionHandler::None);
setDocumentCreator([=]() {
setDocumentCreator([=]() -> BaseTextDocument* {
auto document = new BaseTextDocument(parameters->id);
// if (QLatin1String(parameters->mimeType) != QLatin1String(DiffEditor::Constants::DIFF_EDITOR_MIMETYPE))
return document;
setEditorWidgetCreator([=]() {
setEditorWidgetCreator([=]() -> BaseTextEditorWidget* {
auto widget = qobject_cast<VcsBaseEditorWidget *>(editorWidgetCreator());
widget->setDescribeSlot(describeReceiver, describeSlot);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment