From cb3ef02e9c483596f3c146bc72325457e61d0b19 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 29 Jul 2022 10:16:34 +1000 Subject: Flatten Partitioning and RunStyles to avoid a level of indirection by containing SplitVector and Partitioning directly instead of using std::unique_ptr. This will enable more value semantics and reduces potential memory allocation failure scenarios. --- src/RunStyles.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/RunStyles.h') diff --git a/src/RunStyles.h b/src/RunStyles.h index 328fa1d4d..76d75d75a 100644 --- a/src/RunStyles.h +++ b/src/RunStyles.h @@ -25,8 +25,8 @@ struct FillResult { template class RunStyles { private: - std::unique_ptr> starts; - std::unique_ptr> styles; + Partitioning starts; + SplitVector