Mercurial > octave-nkf
diff scripts/audio/@audiorecorder/get.m @ 19541:dac3191a5301
style fixes for audioplayer and audiorecorder .m files
* @audioplayer/__get_properties__.m, @audioplayer/audioplayer.m,
@audioplayer/get.m, @audioplayer/set.m,
@audiorecorder/__get_properties__.m, @audiorecorder/audiorecorder.m,
@audiorecorder/get.m, @audiorecorder/getaudiodata.m,
@audiorecorder/getplayer.m, @audiorecorder/play.m,
@audiorecorder/set.m: Style fixes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 31 Dec 2014 14:56:52 -0500 |
parents | fdb8a62ef17a |
children | 5802ea7037d4 |
line wrap: on
line diff
--- a/scripts/audio/@audiorecorder/get.m Wed Dec 31 13:45:45 2014 -0500 +++ b/scripts/audio/@audiorecorder/get.m Wed Dec 31 14:56:52 2014 -0500 @@ -30,10 +30,10 @@ function result = get (varargin) recorder = varargin{1}; properties = __get_properties__ (recorder); - if nargin == 1 + if (nargin == 1) result = properties; - elseif nargin == 2 - if ischar (varargin{2}) + elseif (nargin == 2) + if (ischar (varargin{2})) result = getfield (properties, varargin{2}); else result = {};