Browse Source

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

master
heck 4 years ago
parent
commit
4d2be74b06
  1. 2
      src/PityPerspective.cc
  2. 4
      src/PityPerspective.hh

2
src/PityPerspective.cc

@ -5,7 +5,7 @@ namespace pEp {
namespace PityTest11 { namespace PityTest11 {
bool PityPerspective::debug_log_enabled = false; bool PityPerspective::debug_log_enabled = false;
PityPerspective::PityPerspective(PityModel& model) : model{ model } PityPerspective::PityPerspective(const PityModel& model) : model{ model }
{ {
pEpLogClass("called"); pEpLogClass("called");
} }

4
src/PityPerspective.hh

@ -13,10 +13,10 @@ namespace pEp {
class PityPerspective { class PityPerspective {
public: public:
// Constructors // Constructors
PityPerspective(PityModel& model); PityPerspective(const PityModel& model);
// Lets grant access to the whole model too // Lets grant access to the whole model too
PityModel& model; const PityModel& model;
// Perspective // Perspective
std::string own_name; std::string own_name;

Loading…
Cancel
Save