Test: PityTest - PityPerspective make model const, lets see...
parent
1a766e6ece
commit
95234b8a2c
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue