Mercurial > hg > octave-nkf
diff liboctave/oct-mem.h @ 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-mem.h +++ b/liboctave/oct-mem.h @@ -78,16 +78,16 @@ template <class T> inline bool helper_is_zero_mem (const T& value) -{ +{ typedef typename query_integer_type<sizeof (T), false>::type IT; // get integer type of the same size. - return *(reinterpret_cast<const IT *>(&value)) == 0; + return *(reinterpret_cast<const IT *>(&value)) == 0; } template <class T> inline bool helper_is_zero_mem (const std::complex<T>& value) { - return (helper_is_zero_mem (value.real ()) - && helper_is_zero_mem (value.imag ())); + return (helper_is_zero_mem (value.real ()) + && helper_is_zero_mem (value.imag ())); } template <class T> @@ -124,11 +124,11 @@ // Memory allocated by octave_new should be freed by octave_delete. template <class T> inline T *no_ctor_new (size_t n) -{ +{ // Some systems let us allocate > 2GB memory even though size_t, which is either // buggy or completely cuckoo, so let's check here to stay safe. safe_size_comp (n, sizeof (T)); - return new T[n]; + return new T[n]; } template <class T> inline void no_ctor_delete (T *ptr)