bool synchro;
bool wait_for_info;
char LockPasswd[25];
- int lockid
- int unlockid
+ int lockid;
+ int unlockid;
int qid;
int cwid;
int optid;
ConnectList.append(new ConnectEntry((char*)
config_setting_get_string(setting)));
break;
- case CONFIG_TYPE_ARRAY:
- int length = config_setting_length(setting);
- for (int i = 0; i < length; i++) {
+ case CONFIG_TYPE_ARRAY: {
+ int size = config_setting_length(setting);
+ for (int i = 0; i < size; i++) {
ConnectList.append(new ConnectEntry((char*)
config_setting_get_string_elem(setting,
i)));
}
break;
+ }
default:
fprintf(stderr, "%s! In file %s, bad entry type for %s."
" Will not be read.\n",
app->setStyle(new QWindowsStyle());
QKernel kernel;
app->setMainWidget(&kernel);
- draw.show();
- draw.InitMessage();
+ kernel.show();
+ kernel.InitMessage();
return app->exec();
}