octave: Revert use of auto for octave version before 7

This commit is contained in:
Magne Sjaastad 2024-01-12 16:42:56 +01:00
parent cfff6ac024
commit 9dfe155c5a
4 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ void getActiveCellInfo(int32NDArray& activeCellInfo, const QString &hostName, qu
#if OCTAVE_MAJOR_VERSION > 6
auto internalMatrixData = (qint32*)activeCellInfo.fortran_vec();
#else
auto internalMatrixData = (qint32*)activeCellInfo.fortran_vec()->mex_get_data();
qint32* internalMatrixData = (qint32*)activeCellInfo.fortran_vec()->mex_get_data();
#endif
QStringList errorMessages;

View File

@ -66,7 +66,7 @@ void getSelectedCells(int32NDArray& selectedCellInfo, const QString &hostName, q
#if OCTAVE_MAJOR_VERSION > 6
auto internalMatrixData = (qint32*)selectedCellInfo.fortran_vec();
#else
auto internalMatrixData = (qint32*)selectedCellInfo.fortran_vec()->mex_get_data();
qint32* internalMatrixData = (qint32*)selectedCellInfo.fortran_vec()->mex_get_data();
#endif
QStringList errorMessages;

View File

@ -57,7 +57,7 @@ void setEclipseProperty(const Matrix& propertyFrames, const QString &hostName, q
#if OCTAVE_MAJOR_VERSION > 6
auto internalData = propertyFrames.data();
#else
auto internalData = propertyFrames.fortran_vec();
const double* internalData = propertyFrames.fortran_vec();
#endif
QStringList errorMessages;

View File

@ -74,7 +74,7 @@ void setEclipseProperty(const NDArray& propertyFrames, const QString &hostName,
#if OCTAVE_MAJOR_VERSION > 6
auto internalData = propertyFrames.data();
#else
auto internalData = propertyFrames.fortran_vec();
const double* internalData = propertyFrames.fortran_vec();
#endif
QStringList errorMessages;