Fix some warnings about unused things

Change-Id: I42bb514dfe1d6745b1469b508a4cfa576e17c31b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2023-07-24 14:22:37 +02:00
parent c007be8a9a
commit 355e8d133c
5 changed files with 1 additions and 5 deletions

View File

@@ -83,7 +83,6 @@ namespace CMakeProjectManager {
static Q_LOGGING_CATEGORY(cmakeBuildConfigurationLog, "qtc.cmake.bc", QtWarningMsg);
const char CONFIGURATION_KEY[] = "CMake.Configuration";
const char DEVELOPMENT_TEAM_FLAG[] = "Ios:DevelopmentTeam:Flag";
const char PROVISIONING_PROFILE_FLAG[] = "Ios:ProvisioningProfile:Flag";
const char CMAKE_OSX_ARCHITECTURES_FLAG[] = "CMAKE_OSX_ARCHITECTURES:DefaultFlag";

View File

@@ -812,7 +812,7 @@ public:
setId(SETTINGS_USER_CMDS_ID);
setDisplayName(Tr::tr("User Command Mapping"));
setCategory(SETTINGS_CATEGORY);
setWidgetCreator([this] { return new FakeVimUserCommandsPageWidget; });
setWidgetCreator([] { return new FakeVimUserCommandsPageWidget; });
}
};

View File

@@ -190,7 +190,6 @@ static bool isGitDirectory(const FilePath &path)
}
GitGrep::GitGrep(GitClient *client)
: m_client(client)
{
m_widget = new QWidget;
auto layout = new QHBoxLayout(m_widget);

View File

@@ -32,7 +32,6 @@ public:
private:
GitGrepParameters gitParameters() const;
GitClient *m_client;
QWidget *m_widget;
Utils::FancyLineEdit *m_treeLineEdit;
QCheckBox *m_recurseSubmodules = nullptr;

View File

@@ -512,7 +512,6 @@ void SyntaxHighlighter::formatSpaces(const QString &text, int start, int count)
void SyntaxHighlighter::setFormatWithSpaces(const QString &text, int start, int count,
const QTextCharFormat &format)
{
Q_D(const SyntaxHighlighter);
const QTextCharFormat visualSpaceFormat = whitespacified(format);
const int end = std::min(start + count, int(text.length()));