Mercurial > hg > octave-nkf
diff liboctave/oct-glob.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | fd0a3ac60b0e |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/liboctave/oct-glob.cc +++ b/liboctave/oct-glob.cc @@ -80,11 +80,11 @@ glob_t glob_info; #if defined (OCTAVE_HAVE_WINDOWS_FILESYSTEM) \ - && ! defined (OCTAVE_HAVE_POSIX_FILESYSTEM) - std::replace_if (xpat.begin (), xpat.end (), - std::bind2nd (std::equal_to<char> (), '\\'), - '/'); -#endif + && ! defined (OCTAVE_HAVE_POSIX_FILESYSTEM) + std::replace_if (xpat.begin (), xpat.end (), + std::bind2nd (std::equal_to<char> (), '\\'), + '/'); +#endif int err = gnulib::glob (xpat.c_str (), GLOB_NOSORT, 0, &glob_info); @@ -106,19 +106,19 @@ retval.resize (k+n); for (int j = 0; j < n; j++) - { - std::string tmp = matches[j]; + { + std::string tmp = matches[j]; #if defined (OCTAVE_HAVE_WINDOWS_FILESYSTEM) \ - && ! defined (OCTAVE_HAVE_POSIX_FILESYSTEM) - std::replace_if (tmp.begin (), tmp.end (), - std::bind2nd (std::equal_to<char> (), - '/'), - '\\'); -#endif + && ! defined (OCTAVE_HAVE_POSIX_FILESYSTEM) + std::replace_if (tmp.begin (), tmp.end (), + std::bind2nd (std::equal_to<char> (), + '/'), + '\\'); +#endif - retval[k++] = tmp; - } + retval[k++] = tmp; + } } gnulib::globfree (&glob_info);