aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/samples/sample4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googletest/samples/sample4.cc')
-rw-r--r--googletest/samples/sample4.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/googletest/samples/sample4.cc b/googletest/samples/sample4.cc
index 724bcb54..b0ee6093 100644
--- a/googletest/samples/sample4.cc
+++ b/googletest/samples/sample4.cc
@@ -40,13 +40,13 @@ int Counter::Increment() {
// Returns the current counter value, and decrements it.
// counter can not be less than 0, return 0 in this case
- int Counter::Decrement() {
- if (counter_==0){
- return counter_;
- }
- else
- return counter_--;
+int Counter::Decrement() {
+ if (counter_ == 0) {
+ return counter_;
+ } else {
+ return counter_--;
}
+}
// Prints the current counter value to STDOUT.
void Counter::Print() const {