forked from qt-creator/qt-creator
Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -408,7 +408,7 @@ void CMakeBuildSettingsWidget::setConfigurationForCMake()
|
||||
|
||||
void CMakeBuildSettingsWidget::updateSelection(const QModelIndex ¤t, const QModelIndex &previous)
|
||||
{
|
||||
Q_UNUSED(previous);
|
||||
Q_UNUSED(previous)
|
||||
|
||||
m_editButton->setEnabled(current.isValid() && current.flags().testFlag(Qt::ItemIsEditable));
|
||||
m_unsetButton->setEnabled(current.isValid() && current.flags().testFlag(Qt::ItemIsSelectable));
|
||||
|
||||
@@ -928,7 +928,7 @@ void CMakeConfigurationKitAspect::fromStringList(Kit *k, const QStringList &in)
|
||||
|
||||
CMakeConfig CMakeConfigurationKitAspect::defaultConfiguration(const Kit *k)
|
||||
{
|
||||
Q_UNUSED(k);
|
||||
Q_UNUSED(k)
|
||||
CMakeConfig config;
|
||||
// Qt4:
|
||||
config << CMakeConfigItem(CMAKE_QMAKE_KEY, "%{Qt:qmakeExecutable}");
|
||||
@@ -943,7 +943,7 @@ CMakeConfig CMakeConfigurationKitAspect::defaultConfiguration(const Kit *k)
|
||||
|
||||
QVariant CMakeConfigurationKitAspect::defaultValue(const Kit *k) const
|
||||
{
|
||||
Q_UNUSED(k);
|
||||
Q_UNUSED(k)
|
||||
|
||||
// FIXME: Convert preload scripts
|
||||
CMakeConfig config = defaultConfiguration(k);
|
||||
@@ -1058,7 +1058,7 @@ void CMakeConfigurationKitAspect::setup(Kit *k)
|
||||
|
||||
void CMakeConfigurationKitAspect::fix(Kit *k)
|
||||
{
|
||||
Q_UNUSED(k);
|
||||
Q_UNUSED(k)
|
||||
}
|
||||
|
||||
KitAspect::ItemList CMakeConfigurationKitAspect::toUserOutput(const Kit *k) const
|
||||
|
||||
@@ -72,7 +72,7 @@ CMakeRunConfiguration::CMakeRunConfiguration(Target *target, Core::Id id)
|
||||
|
||||
void CMakeRunConfiguration::doAdditionalSetup(const RunConfigurationCreationInfo &info)
|
||||
{
|
||||
Q_UNUSED(info);
|
||||
Q_UNUSED(info)
|
||||
updateTargetInformation();
|
||||
}
|
||||
|
||||
|
||||
@@ -126,8 +126,8 @@ void ConfigModelItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *
|
||||
QSize CMakeProjectManager::ConfigModelItemDelegate::sizeHint(const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const
|
||||
{
|
||||
Q_UNUSED(option);
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(option)
|
||||
Q_UNUSED(index)
|
||||
return QSize(100, m_measurement.sizeHint().height());
|
||||
}
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@ void ServerMode::parseJson(const QVariantMap &data)
|
||||
|
||||
void ServerMode::handleHello(const QVariantMap &data)
|
||||
{
|
||||
Q_UNUSED(data);
|
||||
Q_UNUSED(data)
|
||||
QVariantMap extra;
|
||||
QVariantMap version;
|
||||
version.insert("major", m_majorProtocol);
|
||||
|
||||
Reference in New Issue
Block a user