Skip to content

Commit

Permalink
[MATLAB] simplify SwigRef.subsref
Browse files Browse the repository at this point in the history
SwigRef.subsref used an empty () index, generating warnings with
recent Octave. This was superfluous so I've removed it.

Fixes jaeandersson#99
  • Loading branch information
KrisThielemans committed Dec 29, 2021
1 parent cecdea3 commit b3594ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Modules/matlab.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ void MATLAB::createSwigRef() {
Printf(f_wrap_m, " if numel(s)==1\n");
Printf(f_wrap_m, " switch s.type\n");
Printf(f_wrap_m, " case '.'\n");
Printf(f_wrap_m, " [varargout{1}] = builtin('subsref',self,substruct('.',s.subs,'()',{}));\n");
Printf(f_wrap_m, " [varargout{1}] = builtin('subsref',self,substruct('.',s.subs));\n");
Printf(f_wrap_m, " case '()'\n");
Printf(f_wrap_m, " [varargout{1:nargout}] = builtin('subsref',self,substruct('.','paren','()',s.subs));\n");
Printf(f_wrap_m, " case '{}'\n");
Expand Down

0 comments on commit b3594ff

Please sign in to comment.