Mercurial > octave
diff liboctave/system/oct-env.cc @ 30394:f3f3e3793fb5 stable
maint: style check C++ files in liboctave/ ahead of 7.1 release.
* Array.cc, Array.h, CMatrix.cc, CSparse.cc, MArray.cc, MSparse.cc,
MatrixType.cc, MatrixType.h, Range.cc, Range.h, Sparse.cc, Sparse.h,
dMatrix.cc, dSparse.cc, fCMatrix.cc, fCMatrix.h, fMatrix.cc, fMatrix.h,
idx-vector.cc, idx-vector.h, CollocWt.cc, CollocWt.h, DASPK.cc, DASRT.cc,
DASSL.cc, EIG.cc, LSODE.cc, Quad.cc, aepbalance.cc, chol.cc, eigs-base.cc,
gepbalance.cc, gsvd.cc, lo-amos-proto.h, lo-arpack-proto.h, lo-blas-proto.h,
lo-lapack-proto.h, lo-qrupdate-proto.h, lo-specfun.cc, oct-convn.h, oct-fftw.h,
oct-norm.cc, oct-spparms.cc, randmtzig.cc, sparse-chol.cc, sparse-dmsolve.cc,
sparse-lu.cc, sparse-qr.cc, sparse-qr.h, svd.cc, file-ops.cc, file-stat.cc,
lo-sysinfo.cc, oct-env.cc, f77-fcn.h, lo-cutils.h, lo-ieee.h, lo-regexp.cc,
lo-utils.cc, oct-binmap.h, oct-inttypes.h, oct-sparse.cc, oct-sparse.h,
oct-string.cc, url-transfer.cc:
Style check C++ files in liboctave/ ahead of 7.1 release.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 29 Nov 2021 10:03:47 -0800 |
parents | 96a40641d86e |
children | 796f54d4ddbf |
line wrap: on
line diff
--- a/liboctave/system/oct-env.cc Sun Nov 28 16:31:21 2021 -0500 +++ b/liboctave/system/oct-env.cc Mon Nov 29 10:03:47 2021 -0800 @@ -259,14 +259,14 @@ if (cfg_dir.empty ()) cfg_dir = do_get_home_directory () + sys::file_ops::dir_sep_str () - + ".config"; + + ".config"; return cfg_dir; } - std::string - env::do_get_user_data_directory (void) const - { + std::string + env::do_get_user_data_directory (void) const + { std::string data_dir; #if defined (OCTAVE_HAVE_WINDOWS_FILESYSTEM) && defined (OCTAVE_USE_WINDOWS_API) @@ -280,10 +280,10 @@ if (data_dir.empty ()) data_dir = do_get_home_directory () + sys::file_ops::dir_sep_str () - + ".local" + sys::file_ops::dir_sep_str () + "share"; + + ".local" + sys::file_ops::dir_sep_str () + "share"; return data_dir; - } + } // FIXME: this leaves no way to distinguish between a