Index: base/time.h |
diff --git a/base/time.h b/base/time.h |
index 8590e993555380faec730a17dfd7f9d93fb3450a..a1aa0399bb3d7d3113532a93b657c2d13ee75496 100644 |
--- a/base/time.h |
+++ b/base/time.h |
@@ -101,18 +101,18 @@ class BASE_EXPORT TimeDelta { |
} |
// Computations with other deltas. |
- TimeDelta operator+(TimeDelta other) const { |
+ TimeDelta operator+(const TimeDelta other) const { |
brettw
2011/12/31 17:52:06
Why did you change these lines? It seems like it d
|
return TimeDelta(delta_ + other.delta_); |
} |
- TimeDelta operator-(TimeDelta other) const { |
+ TimeDelta operator-(const TimeDelta other) const { |
return TimeDelta(delta_ - other.delta_); |
} |
- TimeDelta& operator+=(TimeDelta other) { |
+ TimeDelta& operator+=(const TimeDelta other) { |
delta_ += other.delta_; |
return *this; |
} |
- TimeDelta& operator-=(TimeDelta other) { |
+ TimeDelta& operator-=(const TimeDelta other) { |
delta_ -= other.delta_; |
return *this; |
} |