Add const to getters for macro tests
This commit is contained in:
parent
cce6c599af
commit
6fd7616423
@ -79,15 +79,15 @@ class person_with_private_data_2
|
|||||||
, metadata(std::move(metadata_))
|
, metadata(std::move(metadata_))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string getName()
|
std::string getName() const
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
int getAge()
|
int getAge() const
|
||||||
{
|
{
|
||||||
return age;
|
return age;
|
||||||
}
|
}
|
||||||
json getMetadata()
|
json getMetadata() const
|
||||||
{
|
{
|
||||||
return metadata;
|
return metadata;
|
||||||
}
|
}
|
||||||
@ -158,15 +158,15 @@ class person_without_private_data_3
|
|||||||
, metadata(std::move(metadata_))
|
, metadata(std::move(metadata_))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string getName()
|
std::string getName() const
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
int getAge()
|
int getAge() const
|
||||||
{
|
{
|
||||||
return age;
|
return age;
|
||||||
}
|
}
|
||||||
json getMetadata()
|
json getMetadata() const
|
||||||
{
|
{
|
||||||
return metadata;
|
return metadata;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user