diff --git a/src/buildblock/ProjDataInMemory.cxx b/src/buildblock/ProjDataInMemory.cxx index 4571e2a8a..033268e16 100644 --- a/src/buildblock/ProjDataInMemory.cxx +++ b/src/buildblock/ProjDataInMemory.cxx @@ -73,11 +73,12 @@ ProjDataInMemory::ProjDataInMemory(shared_ptr const& exam_info_s void ProjDataInMemory::create_buffer(const bool initialise_with_0) { - if (!initialise_with_0) { - this->buffer.set_initialise_with_zeros(false); - this->buffer.grow(0, this->size_all() - 1); - return; - } + if (!initialise_with_0) + { + this->buffer.set_initialise_with_zeros(false); + this->buffer.grow(0, this->size_all() - 1); + return; + } #if 0 float *b = new float[this->size_all()]; if (initialise_with_0) diff --git a/src/include/stir/Array.h b/src/include/stir/Array.h index 17a42ffe1..6aa4098d1 100644 --- a/src/include/stir/Array.h +++ b/src/include/stir/Array.h @@ -589,7 +589,7 @@ class Array<1, elemT> : public NumericVectorWithOffset */ inline void init(const IndexRange<1>& range, elemT* const data_ptr, bool copy_data); - bool init_with_zeros_= 1; + bool init_with_zeros_ = 1; }; END_NAMESPACE_STIR diff --git a/src/include/stir/Array.inl b/src/include/stir/Array.inl index 6a503a154..a66113167 100644 --- a/src/include/stir/Array.inl +++ b/src/include/stir/Array.inl @@ -584,10 +584,11 @@ Array<1, elemT>::resize(const int min_index, const int max_index) base_type::resize(min_index, max_index); - if (!get_initialise_with_zeros()) { - this->check_state(); - return; - } + if (!get_initialise_with_zeros()) + { + this->check_state(); + return; + } if (oldlength == 0) {