mirror of
https://github.com/google/googletest.git
synced 2025-12-03 14:27:45 +08:00
Rename private member of AdditionalMessage
Shorten lines in unit tests
This commit is contained in:
@@ -1192,14 +1192,14 @@ class NativeArray {
|
||||
class AdditionalMessage
|
||||
{
|
||||
public:
|
||||
AdditionalMessage(const char* message) : value(message) {}
|
||||
void set(const std::string& message) { value = message; }
|
||||
AdditionalMessage(const char* message) : msg(message) {}
|
||||
void set(const std::string& message) { msg = message; }
|
||||
operator bool() const { return true; }
|
||||
|
||||
const std::string& get() const { return value; }
|
||||
const std::string& get() const { return msg; }
|
||||
|
||||
private:
|
||||
std::string value;
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
|
||||
Reference in New Issue
Block a user