Use assign instead of clear and resize

This commit is contained in:
heckflosse
2017-09-25 13:14:21 +02:00
parent 4313cfc74c
commit 31095d3a9d
2 changed files with 2 additions and 4 deletions

View File

@@ -2563,8 +2563,7 @@ bool Preferences::splashClosed (GdkEventAny* event)
void Preferences::behAddSetAllPressed (bool add)
{
moptions.baBehav.clear();
moptions.baBehav.resize(ADDSET_PARAM_NUM, add);
moptions.baBehav.assign(ADDSET_PARAM_NUM, add);
for (Gtk::TreeIter sections = behModel->children().begin(); sections != behModel->children().end(); ++sections) {
for (Gtk::TreeIter adjs = sections->children().begin(); adjs != sections->children().end(); ++adjs) {
adjs->set_value(behavColumns.badd, add);