Test: PityTest - PityPerspective make model const, lets see...

LIB-11
heck 2021-07-10 13:33:23 +02:00
parent 1a766e6ece
commit 95234b8a2c
2 changed files with 3 additions and 3 deletions

View File

@ -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");
}

View File

@ -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;