Use assign instead of clear and resize
This commit is contained in:
@@ -511,8 +511,7 @@ void Options::setDefaults ()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 0 = SET mode, 1 = ADD mode
|
// 0 = SET mode, 1 = ADD mode
|
||||||
baBehav.clear();
|
baBehav.assign(ADDSET_PARAM_NUM, 0);
|
||||||
baBehav.resize(ADDSET_PARAM_NUM, 0);
|
|
||||||
|
|
||||||
rtSettings.darkFramesPath = "";
|
rtSettings.darkFramesPath = "";
|
||||||
rtSettings.flatFieldsPath = "";
|
rtSettings.flatFieldsPath = "";
|
||||||
|
@@ -2563,8 +2563,7 @@ bool Preferences::splashClosed (GdkEventAny* event)
|
|||||||
|
|
||||||
void Preferences::behAddSetAllPressed (bool add)
|
void Preferences::behAddSetAllPressed (bool add)
|
||||||
{
|
{
|
||||||
moptions.baBehav.clear();
|
moptions.baBehav.assign(ADDSET_PARAM_NUM, add);
|
||||||
moptions.baBehav.resize(ADDSET_PARAM_NUM, add);
|
|
||||||
for (Gtk::TreeIter sections = behModel->children().begin(); sections != behModel->children().end(); ++sections) {
|
for (Gtk::TreeIter sections = behModel->children().begin(); sections != behModel->children().end(); ++sections) {
|
||||||
for (Gtk::TreeIter adjs = sections->children().begin(); adjs != sections->children().end(); ++adjs) {
|
for (Gtk::TreeIter adjs = sections->children().begin(); adjs != sections->children().end(); ++adjs) {
|
||||||
adjs->set_value(behavColumns.badd, add);
|
adjs->set_value(behavColumns.badd, add);
|
||||||
|
Reference in New Issue
Block a user