From 4d2be74b06322dd99c130e9519e10f245b87ba44 Mon Sep 17 00:00:00 2001 From: heck Date: Sat, 10 Jul 2021 13:33:23 +0200 Subject: [PATCH] Test: PityTest - PityPerspective make model const, lets see... --- src/PityPerspective.cc | 2 +- src/PityPerspective.hh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PityPerspective.cc b/src/PityPerspective.cc index fc2ff4c..404aa83 100644 --- a/src/PityPerspective.cc +++ b/src/PityPerspective.cc @@ -5,7 +5,7 @@ namespace pEp { namespace PityTest11 { bool PityPerspective::debug_log_enabled = false; - PityPerspective::PityPerspective(PityModel& model) : model{ model } + PityPerspective::PityPerspective(const PityModel& model) : model{ model } { pEpLogClass("called"); } diff --git a/src/PityPerspective.hh b/src/PityPerspective.hh index a390c11..cd1db1f 100644 --- a/src/PityPerspective.hh +++ b/src/PityPerspective.hh @@ -13,10 +13,10 @@ namespace pEp { class PityPerspective { public: // Constructors - PityPerspective(PityModel& model); + PityPerspective(const PityModel& model); // Lets grant access to the whole model too - PityModel& model; + const PityModel& model; // Perspective std::string own_name;