Quellcode durchsuchen

UI: Fix constructor reorder warning

The class members were listed in the wrong order, causing GCC to throw
up a reorder warning signifying that they cannot be initialized in the
order they were listed in the constructor initializer list.
jp9000 vor 10 Jahren
Ursprung
Commit
14488a8c2f
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      obs/window-basic-properties.cpp

+ 2 - 2
obs/window-basic-properties.cpp

@@ -42,8 +42,8 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
 	                          "update_properties",
 	                          OBSBasicProperties::UpdateProperties,
 	                          this),
-	  buttonBox              (new QDialogButtonBox(this)),
-	  oldSettings            (obs_data_create())
+	  oldSettings            (obs_data_create()),
+	  buttonBox              (new QDialogButtonBox(this))
 {
 	int cx = (int)config_get_int(App()->GlobalConfig(), "PropertiesWindow",
 			"cx");