From 79af684323abfa10abfc31003ab47fd89a03d625 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Tue, 27 May 2014 16:14:46 +0200 Subject: Tweaked the forms look and feal a bit and changed the way models are created. --- fusion_model.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'fusion_model.hpp') diff --git a/fusion_model.hpp b/fusion_model.hpp index 3d84c87..d2fe950 100644 --- a/fusion_model.hpp +++ b/fusion_model.hpp @@ -94,9 +94,11 @@ struct FusionModel> : public FusionModelInterface typedef std::vector data_type; typedef T row_type; - std::vector data; + std::vector& data; - FusionModel() = default; + FusionModel(std::vector& data) + : data(data) + {} virtual size_t row_count() const override final { @@ -133,9 +135,11 @@ struct FusionModel> : public FusionModelInterface data_type; typedef T row_type; - std::map data; + std::map& data; - FusionModel() = default; + FusionModel(std::map& data) + : data(data) + {} virtual size_t row_count() const override final { -- cgit v1.2.3-70-g09d2