Skip to content

Commit b25dc46

Browse files
author
ThePBone
committed
Fixed bug in the autoeq importer
+ MSVC compatibility
1 parent a41fd52 commit b25dc46

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mainwindow.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,10 @@ void MainWindow::exportVDC()
500500
}
501501
void MainWindow::importParametricAutoEQ(){
502502

503-
ui->listView_DDCPoints->clear();
504-
505503
QString fileName = QFileDialog::getOpenFileName(this,
506504
"Import AutoEQ config 'ParametricEQ.txt'", "", "AutoEQ ParametricEQ.txt (*ParametricEQ.txt);;All files (*.*)");
507505
if (fileName != "" && fileName != nullptr){
506+
ui->listView_DDCPoints->clear();
508507
QString str;
509508
QFile file(fileName);
510509
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)){

vdcimporter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ int vasprintf(char **strp, const char *fmt, va_list ap)
335335
{
336336
int len = _vscprintf_so(fmt, ap);
337337
if (len == -1) return -1;
338-
char *str = malloc((size_t)len + 1);
338+
char *str = (char*)malloc((size_t)len + 1);
339339
if (!str) return -1;
340340
int r = vsnprintf(str, len + 1, fmt, ap); /* "secure" version of vsprintf */
341341
if (r == -1) return free(str), -1;

0 commit comments

Comments
 (0)