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:
parent
409f83a149
commit
f269406061
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user