return path;
}
r = GetModuleFileNameA((HMODULE)mbi.AllocationBase, line, BSZ);
- if (!r || (r == BSZ)) {
+ if (!r || r == BSZ) {
errout << "failed to get path for executable.\n";
return path;
}
QString sfx = WIDGET(QComboBox, cbExtension)->currentText();
QString fileName(WIDGET(QLineEdit, leOutput)->text());
- if ((fileName == QString("")) || (sfx == QString("NONE")))
+ if (fileName == QString("") || sfx == QString("NONE"))
doPreview(QString());
else {
fileName = stripFileExtension(fileName);
activeWindow->outputFile = fileName;
#ifdef _WIN32
- if ((!fileName.contains('/')) && (!fileName.contains('\\')))
+ if (!fileName.contains('/') && !fileName.contains('\\'))
#else
if (!fileName.contains('/'))
#endif
return drawGraph();
- if ((m) && (m == getActiveWindow())) {
+ if (m && m == getActiveWindow()) {
if (this->loadGraph(m))
return drawGraph();
else
cb->clear();
for (int id = 0; id < count; id++) {
cb->addItem(QString(lp[id]));
- if (prefer && (idx < 0) && !strcmp(prefer, lp[id]))
+ if (prefer && idx < 0 && !strcmp(prefer, lp[id]))
idx = id;
};
freeList(lp, count);