From 98ac25b2ceb2e3452454bc65430b0a38f6f33e20 Mon Sep 17 00:00:00 2001 From: Chaoya Li Date: Mon, 28 Jun 2021 21:02:29 +0800 Subject: [PATCH] Add const to getters for macro tests --- test/src/unit-udt_macro.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/src/unit-udt_macro.cpp b/test/src/unit-udt_macro.cpp index 7c7744f95..45b13896d 100644 --- a/test/src/unit-udt_macro.cpp +++ b/test/src/unit-udt_macro.cpp @@ -79,15 +79,15 @@ class person_with_private_data_2 , metadata(std::move(metadata_)) {} - std::string getName() + std::string getName() const { return name; } - int getAge() + int getAge() const { return age; } - json getMetadata() + json getMetadata() const { return metadata; } @@ -158,15 +158,15 @@ class person_without_private_data_3 , metadata(std::move(metadata_)) {} - std::string getName() + std::string getName() const { return name; } - int getAge() + int getAge() const { return age; } - json getMetadata() + json getMetadata() const { return metadata; }