summaryrefslogtreecommitdiffstats
path: root/gtest/samples/sample2.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtest/samples/sample2.h')
-rw-r--r--gtest/samples/sample2.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtest/samples/sample2.h b/gtest/samples/sample2.h
index 5b57e60..c5f3b8c 100644
--- a/gtest/samples/sample2.h
+++ b/gtest/samples/sample2.h
@@ -40,13 +40,13 @@
// A simple string class.
class MyString {
private:
- const char* c_string_;
+ const char * c_string_;
const MyString& operator=(const MyString& rhs);
public:
// Clones a 0-terminated C string, allocating memory using new.
- static const char* CloneCString(const char* a_c_string);
+ static const char * CloneCString(const char * c_string);
////////////////////////////////////////////////////////////
//
@@ -56,8 +56,8 @@ class MyString {
MyString() : c_string_(NULL) {}
// Constructs a MyString by cloning a 0-terminated C string.
- explicit MyString(const char* a_c_string) : c_string_(NULL) {
- Set(a_c_string);
+ explicit MyString(const char * c_string) : c_string_(NULL) {
+ Set(c_string);
}
// Copy c'tor
@@ -72,14 +72,14 @@ class MyString {
~MyString() { delete[] c_string_; }
// Gets the 0-terminated C string this MyString object represents.
- const char* c_string() const { return c_string_; }
+ const char * c_string() const { return c_string_; }
size_t Length() const {
return c_string_ == NULL ? 0 : strlen(c_string_);
}
// Sets the 0-terminated C string this MyString object represents.
- void Set(const char* c_string);
+ void Set(const char * c_string);
};