1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

Do not wrap emit expresison with parenthesis

To avoid warnings like following after clang-format applied:

apps/launcher/utils/profilescombobox.cpp:85:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
    emit(signalProfileChanged(mOldProfile, currentText()));
        ^
apps/launcher/utils/profilescombobox.cpp:82:5: note: previous statement is here
    if (index == -1)
    ^
This commit is contained in:
elsid 2022-09-12 15:56:38 +02:00
parent 409f83a149
commit f269406061
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ void ProfilesComboBox::slotEditingFinished()
return;
setItemText(currentIndex(), current);
emit(profileRenamed(previous, current));
emit profileRenamed(previous, current);
}
void ProfilesComboBox::slotIndexChangedByUser(int index)
@ -79,7 +79,7 @@ void ProfilesComboBox::slotIndexChangedByUser(int index)
if (index == -1)
return;
emit (signalProfileChanged(mOldProfile, currentText()));
emit signalProfileChanged(mOldProfile, currentText());
mOldProfile = currentText();
}

View File

@ -678,7 +678,7 @@ CSMPrefs::Category& CSMPrefs::State::operator[] (const std::string& key)
void CSMPrefs::State::update (const Setting& setting)
{
emit (settingChanged (&setting));
emit settingChanged(&setting);
}
CSMPrefs::State& CSMPrefs::State::get()