forked from qt-creator/qt-creator
Fix some compiler warnings about unused variables
Change-Id: I9a9450eab68f53b08722adb9a5d33c4f318b2129 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -51,14 +51,14 @@
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
static const char crashReportingEnabledKey[] = "CrashReportingEnabled";
|
||||
static const char showCrashButtonKey[] = "ShowCrashButton";
|
||||
|
||||
namespace Core {
|
||||
namespace Internal {
|
||||
|
||||
// TODO: move to somewhere in Utils
|
||||
#ifdef ENABLE_CRASHPAD
|
||||
const char crashReportingEnabledKey[] = "CrashReportingEnabled";
|
||||
const char showCrashButtonKey[] = "ShowCrashButton";
|
||||
|
||||
// TODO: move to somewhere in Utils
|
||||
static QString formatSize(qint64 size)
|
||||
{
|
||||
QStringList units {QObject::tr("Bytes"), QObject::tr("KB"), QObject::tr("MB"),
|
||||
|
||||
@@ -1558,7 +1558,7 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor)
|
||||
return;
|
||||
|
||||
// Duplicated editors are not signalled by the EditorManager. Track them nevertheless.
|
||||
connect(editor, &IEditor::editorDuplicated, this, [this, editor](IEditor *duplicate) {
|
||||
connect(editor, &IEditor::editorDuplicated, this, [this](IEditor *duplicate) {
|
||||
editorOpened(duplicate);
|
||||
connect(duplicate, &QObject::destroyed, this, [this, duplicate] {
|
||||
m_editorToHandler.remove(duplicate);
|
||||
|
||||
Reference in New Issue
Block a user