[PATCH] matio: Fix compilation for latest version 1.5.27
authorStefan Gerlach <stefan.gerlach@uni-konstanz.de>
Fri, 26 Apr 2024 23:08:37 +0000 (01:08 +0200)
committerPino Toscano <pino@debian.org>
Sun, 2 Jun 2024 19:04:24 +0000 (21:04 +0200)
Gbp-Pq: Name upstream_matio-Fix-compilation-for-latest-version-1.5.27.patch

src/backend/datasources/filters/MatioFilter.cpp

index 86cf8211cca56f822457345fc16d199348fd8513..b6175410cd451613e6b2a9c383f25bc4746820ca 100644 (file)
@@ -342,7 +342,7 @@ QString MatioFilter::fileInfoString(const QString& fileName) {
        info += QLatin1String("<br>");
 
        size_t n;
-       char** dir = Mat_GetDir(matfp, &n);
+       auto* dir = Mat_GetDir(matfp, &n);
        info += i18n("Number of variables: ") + QString::number(n);
        info += QStringLiteral("<br>");
        if (dir && n < 10) { // only show variable info when there are not too many
@@ -550,7 +550,7 @@ void MatioFilterPrivate::parse(const QString& fileName) {
        }
 
        // get names of all vars
-       char** dir = Mat_GetDir(matfp, &varCount);
+       auto* dir = Mat_GetDir(matfp, &varCount);
        DEBUG(Q_FUNC_INFO << ", found " << varCount << " vars")
 
        varsInfo.clear();