Mercurial > hg > octave-thorsten
diff src/DLD-FUNCTIONS/colloc.cc @ 10154:40dfc0c99116
DLD-FUNCTIONS/*.cc: untabify
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 20 Jan 2010 17:33:41 -0500 (2010-01-20) |
parents | a1dbe9d80eee |
children | d0ce5e973937 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/colloc.cc +++ b/src/DLD-FUNCTIONS/colloc.cc @@ -84,36 +84,36 @@ for (int i = 1; i < nargin; i++) { if (args(i).is_defined ()) - { - if (! args(i).is_string ()) - { - error ("colloc: expecting string argument"); - return retval; - } + { + if (! args(i).is_string ()) + { + error ("colloc: expecting string argument"); + return retval; + } - std::string s = args(i).string_value (); + std::string s = args(i).string_value (); - if ((s.length () == 1 && (s[0] == 'R' || s[0] == 'r')) - || s == "right") - { - right = 1; - } - else if ((s.length () == 1 && (s[0] == 'L' || s[0] == 'l')) - || s == "left") - { - left = 1; - } - else - { - error ("colloc: unrecognized argument"); - return retval; - } - } + if ((s.length () == 1 && (s[0] == 'R' || s[0] == 'r')) + || s == "right") + { + right = 1; + } + else if ((s.length () == 1 && (s[0] == 'L' || s[0] == 'l')) + || s == "left") + { + left = 1; + } + else + { + error ("colloc: unrecognized argument"); + return retval; + } + } else - { - error ("colloc: unexpected empty argument"); - return retval; - } + { + error ("colloc: unexpected empty argument"); + return retval; + } } ntot += left + right;