File tree Expand file tree Collapse file tree 3 files changed +249
-350
lines changed
Expand file tree Collapse file tree 3 files changed +249
-350
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments