Two missing CONFIG_END's in qt_deviceconfig.cpp
This commit is contained in:
@@ -123,7 +123,7 @@ DeviceConfig::ProcessConfig(void *dc, const void *c, const bool is_dep)
|
|||||||
if (config == NULL)
|
if (config == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (config->type != -1) {
|
while (config->type != CONFIG_END) {
|
||||||
const int config_type = config->type & CONFIG_TYPE_MASK;
|
const int config_type = config->type & CONFIG_TYPE_MASK;
|
||||||
|
|
||||||
/* Ignore options of the wrong class. */
|
/* Ignore options of the wrong class. */
|
||||||
@@ -376,7 +376,7 @@ DeviceConfig::ConfigureDevice(const _device_ *device, int instance, Settings *se
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
config = device->config;
|
config = device->config;
|
||||||
while (config->type != -1) {
|
while (config->type != CONFIG_END) {
|
||||||
switch (config->type) {
|
switch (config->type) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user