From 95234b8a2c452b6ba33d8a38f43850e0aad96cf0 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... --- test/pitytest11/src/PityPerspective.cc | 2 +- test/pitytest11/src/PityPerspective.hh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/pitytest11/src/PityPerspective.cc b/test/pitytest11/src/PityPerspective.cc index fc2ff4c..404aa83 100644 --- a/test/pitytest11/src/PityPerspective.cc +++ b/test/pitytest11/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/test/pitytest11/src/PityPerspective.hh b/test/pitytest11/src/PityPerspective.hh index a390c11..cd1db1f 100644 --- a/test/pitytest11/src/PityPerspective.hh +++ b/test/pitytest11/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;