Added a line-break after each "if" to get more accurate coverage report

This commit is contained in:
Benoit Blanchon
2020-02-16 15:05:23 +01:00
parent 8f8c82d400
commit 0814fc185f
38 changed files with 429 additions and 214 deletions

View File

@@ -64,7 +64,8 @@ class ObjectConstRef : public ObjectRefBase<const CollectionData>,
ObjectConstRef(const CollectionData* data) : base_type(data) {}
FORCE_INLINE iterator begin() const {
if (!_data) return iterator();
if (!_data)
return iterator();
return iterator(_data->head());
}
@@ -154,7 +155,8 @@ class ObjectRef : public ObjectRefBase<CollectionData>,
}
FORCE_INLINE iterator begin() const {
if (!_data) return iterator();
if (!_data)
return iterator();
return iterator(_pool, _data->head());
}
@@ -163,12 +165,14 @@ class ObjectRef : public ObjectRefBase<CollectionData>,
}
void clear() const {
if (!_data) return;
if (!_data)
return;
_data->clear();
}
FORCE_INLINE bool set(ObjectConstRef src) {
if (!_data || !src._data) return false;
if (!_data || !src._data)
return false;
return _data->copyFrom(*src._data, _pool);
}
@@ -207,7 +211,8 @@ class ObjectRef : public ObjectRefBase<CollectionData>,
}
FORCE_INLINE void remove(iterator it) const {
if (!_data) return;
if (!_data)
return;
_data->remove(it.internal());
}