mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 18:04:52 +00:00
Prefer default construction.
This commit is contained in:
parent
a105a9cc1d
commit
2e8e81bc34
@ -953,7 +953,7 @@ void preferences_dialog::process_event()
|
||||
set_selection(MULTIPLAYER_TAB);
|
||||
|
||||
if (friends_add_friend_button_.pressed()) {
|
||||
std::string notes = "";
|
||||
std::string notes;
|
||||
std::string username = friends_input_.text();
|
||||
size_t pos = username.find_first_of(' ');
|
||||
|
||||
@ -970,7 +970,7 @@ void preferences_dialog::process_event()
|
||||
}
|
||||
}
|
||||
if (friends_add_ignore_button_.pressed()) {
|
||||
std::string reason = "";
|
||||
std::string reason;
|
||||
std::string username = friends_input_.text();
|
||||
size_t pos = username.find_first_of(' ');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user