Mercurial > octave-nkf
diff libinterp/corefcn/load-save.cc @ 19898:17d647821d61
maint: More cleanup of C++ code to follow Octave coding conventions.
* gl-select.cc, betainc.cc, bitfcns.cc, bsxfun.cc, gl-render.cc,
graphics.cc, load-save.cc, ls-mat-ascii.cc, ls-mat5.cc, lu.cc,
oct-stream.cc, symtab.cc, variables.cc, __eigs__.cc,
__magick_read__.cc, chol.cc, ov-base-sparse.cc, ov-class.cc,
ov-classdef.cc, ov-fcn-inline.cc, ov-perm.cc, ov.cc, CMatrix.cc,
CSparse.cc, MSparse.cc, MatrixType.cc, MatrixType.h, dMatrix.cc,
dSparse.cc, fCMatrix.cc, fMatrix.cc, eigs-base.cc, lo-sysdep.cc,
kpse.cc: Break long lines before && and ||.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 26 Feb 2015 13:07:04 -0500 |
parents | bafcfc5b99af |
children | 4f45eaf83908 |
line wrap: on
line diff
--- a/libinterp/corefcn/load-save.cc Thu Feb 26 10:49:20 2015 -0500 +++ b/libinterp/corefcn/load-save.cc Thu Feb 26 13:07:04 2015 -0500 @@ -215,8 +215,8 @@ std::ifstream file (fname.c_str ()); OCTAVE_LOCAL_BUFFER (unsigned char, magic, 2); - if (file.read (reinterpret_cast<char *> (magic), 2) && magic[0] == 0x1f && - magic[1] == 0x8b) + if (file.read (reinterpret_cast<char *> (magic), 2) && magic[0] == 0x1f + && magic[1] == 0x8b) retval = true; file.close (); @@ -1713,8 +1713,8 @@ return retval; } - bool write_header_info = ! (append && - H5Fis_hdf5 (fname.c_str ()) > 0); + bool write_header_info + = ! (append && H5Fis_hdf5 (fname.c_str ()) > 0); hdf5_ofstream hdf5_file (fname.c_str (), mode);