aboutsummaryrefslogtreecommitdiffstats
path: root/samples/sample3-inl.h
diff options
context:
space:
mode:
authorvladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-11-04 17:56:23 +0000
committervladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-11-04 17:56:23 +0000
commit8965a6a0d2165f32e6413594bba6367f271f51e7 (patch)
treeab0e0f5e0fd23697673ec2e0edca67079375dd2c /samples/sample3-inl.h
parent829402edcffe712ed4c79412ca020525cd8295ad (diff)
downloadgoogletest-8965a6a0d2165f32e6413594bba6367f271f51e7.tar.gz
googletest-8965a6a0d2165f32e6413594bba6367f271f51e7.tar.bz2
googletest-8965a6a0d2165f32e6413594bba6367f271f51e7.zip
Improves conformance to the Google C++ Style Guide (by Greg Miller).
Diffstat (limited to 'samples/sample3-inl.h')
-rw-r--r--samples/sample3-inl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/samples/sample3-inl.h b/samples/sample3-inl.h
index 46369a07..7e3084d6 100644
--- a/samples/sample3-inl.h
+++ b/samples/sample3-inl.h
@@ -60,7 +60,7 @@ class QueueNode {
private:
// Creates a node with a given element value. The next pointer is
// set to NULL.
- QueueNode(const E& an_element) : element_(an_element), next_(NULL) {}
+ explicit QueueNode(const E& an_element) : element_(an_element), next_(NULL) {}
// We disable the default assignment operator and copy c'tor.
const QueueNode& operator = (const QueueNode&);
@@ -72,8 +72,7 @@ class QueueNode {
template <typename E> // E is the element type.
class Queue {
-public:
-
+ public:
// Creates an empty queue.
Queue() : head_(NULL), last_(NULL), size_(0) {}
@@ -168,6 +167,6 @@ public:
// We disallow copying a queue.
Queue(const Queue&);
const Queue& operator = (const Queue&);
- };
+};
#endif // GTEST_SAMPLES_SAMPLE3_INL_H_