mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-09 15:43:07 -06:00
Use Octave_map instead of octave_scalar_map when building Octave data structures
p4#: 21615
This commit is contained in:
parent
f5b779d4c4
commit
8c29270294
@ -1,6 +1,6 @@
|
||||
#include <QtNetwork>
|
||||
#include <octave/oct.h>
|
||||
#include <octave/ov-struct.h>
|
||||
#include <octave/oct-map.h>
|
||||
|
||||
#include "riSettings.h"
|
||||
|
||||
@ -97,13 +97,10 @@ DEFUN_DLD (riGetCurrentCase, args, nargout,
|
||||
|
||||
getCurrentCase(caseId, caseName, caseType, caseGroupId, "127.0.0.1", 40001);
|
||||
|
||||
charMatrix ch;
|
||||
ch.resize(1, caseName.length());
|
||||
ch.insert(caseName.toLatin1().data(), 0, 0);
|
||||
Octave_map fieldMap;
|
||||
|
||||
octave_scalar_map fieldMap;
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseId, caseId);
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseName, ch);
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseName, caseName.toLatin1().data());
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseType, caseType);
|
||||
fieldMap.assign(riOctavePlugin::caseInfo_CaseGroupId, caseGroupId);
|
||||
|
||||
|
@ -29,7 +29,3 @@ namespace riOctavePlugin
|
||||
char caseInfo_CaseGroupId[] = "CaseGroupId";
|
||||
}
|
||||
|
||||
// Support previous name Octave_map of class octave_scalar_map
|
||||
#ifndef OCTAVE_API_VERSION_NUMBER
|
||||
#define octave_scalar_map Octave_map
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user