1
0
Fork 0

reduce redundant code

This commit is contained in:
Kevin Matz 2021-08-31 11:59:48 -04:00
parent 00b1c1299f
commit 355f2b3365
1 changed files with 2 additions and 4 deletions

View File

@ -207,11 +207,9 @@ public:
*/
template<class T>
void createDataBlock() {
auto block = std::make_shared<Block<T>>();
if (stream_)
block->iStream(stream_);
createData<Block<T>>();
auto block = std::static_pointer_cast<Block<T>>(data_);
block->setParent(shared_from_this());
data_ = block;
}
protected: