Skip to content

Commit cbe6d0f

Browse files
committed
matlabarray compiles
1 parent 02cfba3 commit cbe6d0f

File tree

3 files changed

+249
-350
lines changed

3 files changed

+249
-350
lines changed

src/Core/Matlab/matfiledata.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ namespace SCIRun
184184
// there is no need to do memory management
185185

186186
template<class T> void getandcastvector(std::vector<T> &vec);
187-
template<class T> void putandcastvector(std::vector<T> &vec,mitype type);
187+
template<class T> void putandcastvector(const std::vector<T> &vec,mitype type);
188188

189189
template<class ITERATOR> void putandcast(ITERATOR is,ITERATOR ie,mitype type);
190190

@@ -201,9 +201,9 @@ namespace SCIRun
201201
// functions.
202202

203203
std::string getstring();
204-
void putstring(std::string str);
204+
void putstring(const std::string& str);
205205
std::vector<std::string> getstringarray(int strlength);
206-
int putstringarray(std::vector<std::string>);
206+
int putstringarray(const std::vector<std::string>&);
207207

208208
// reorder will reorder the data in the datafield according to the indices
209209
// specified.
@@ -750,7 +750,7 @@ namespace SCIRun
750750
}
751751

752752

753-
template<class T> void matfiledata::putandcastvector(std::vector<T> &vec,mitype type)
753+
template<class T> void matfiledata::putandcastvector(const std::vector<T> &vec,mitype type)
754754
{
755755
clear();
756756

0 commit comments

Comments
 (0)