Skip to content

Commit d9e733d

Browse files
committed
Small change
1 parent 98ba7e6 commit d9e733d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Core/IEPlugin/MatlabFiles_Plugin.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,14 @@ SCIRun::MatlabNrrd_writer(LoggerHandle pr,
206206
FieldHandle
207207
SCIRun::MatlabField_reader(LoggerHandle pr, const char *filename)
208208
{
209-
matlabfile mf;
210209
// Make sure that errors are forwarded in the conversion process
211210
matlabconverter mc(pr);
212-
matlabarray ma;
213211
std::string dummytext;
214212
FieldHandle mh;
215213

216-
mh = 0;
217-
218214
try
219215
{
216+
matlabfile mf;
220217
// Open the file
221218
mf.open(std::string(filename),"r");
222219
// How many object do we have in the file
@@ -226,7 +223,7 @@ SCIRun::MatlabField_reader(LoggerHandle pr, const char *filename)
226223
for (int p=0;p<numarrays;p++)
227224
{
228225
// Get the header of the object
229-
ma = mf.getmatlabarrayinfo(p);
226+
matlabarray ma = mf.getmatlabarrayinfo(p);
230227
// Is this object compatible?
231228
if (mc.sciFieldCompatible(ma,dummytext))
232229
{

0 commit comments

Comments
 (0)