Skip to content

Commit c3b25d6

Browse files
followed pre-commit suggestions
1 parent ac31b6a commit c3b25d6

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

Diff for: src/buildblock/ProjDataInMemory.cxx

+6-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ ProjDataInMemory::ProjDataInMemory(shared_ptr<const ExamInfo> const& exam_info_s
7373
void
7474
ProjDataInMemory::create_buffer(const bool initialise_with_0)
7575
{
76-
if (!initialise_with_0) {
77-
this->buffer.set_initialise_with_zeros(false);
78-
this->buffer.grow(0, this->size_all() - 1);
79-
return;
80-
}
76+
if (!initialise_with_0)
77+
{
78+
this->buffer.set_initialise_with_zeros(false);
79+
this->buffer.grow(0, this->size_all() - 1);
80+
return;
81+
}
8182
#if 0
8283
float *b = new float[this->size_all()];
8384
if (initialise_with_0)

Diff for: src/include/stir/Array.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ class Array<1, elemT> : public NumericVectorWithOffset<elemT, elemT>
589589
*/
590590
inline void init(const IndexRange<1>& range, elemT* const data_ptr, bool copy_data);
591591

592-
bool init_with_zeros_= 1;
592+
bool init_with_zeros_ = 1;
593593
};
594594

595595
END_NAMESPACE_STIR

Diff for: src/include/stir/Array.inl

+5-4
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,11 @@ Array<1, elemT>::resize(const int min_index, const int max_index)
584584

585585
base_type::resize(min_index, max_index);
586586

587-
if (!get_initialise_with_zeros()) {
588-
this->check_state();
589-
return;
590-
}
587+
if (!get_initialise_with_zeros())
588+
{
589+
this->check_state();
590+
return;
591+
}
591592

592593
if (oldlength == 0)
593594
{

0 commit comments

Comments
 (0)