Index: preparser/preparser-process.cc |
diff --git a/preparser/preparser-process.cc b/preparser/preparser-process.cc |
index 66b53a1b376b0674218d19af22667319de0b8cfc..0cd7a6382f391f0cf548502c230a0a5a60a2f6af 100644 |
--- a/preparser/preparser-process.cc |
+++ b/preparser/preparser-process.cc |
@@ -183,9 +183,10 @@ class ScopedPointer { |
~ScopedPointer() { if (pointer_ != NULL) delete[] pointer_; } |
T& operator[](int index) { return pointer_[index]; } |
T* operator*() { return pointer_ ;} |
- T*& operator=(T* new_value) { |
+ T* operator=(T* new_value) { |
if (pointer_ != NULL) delete[] pointer_; |
pointer_ = new_value; |
+ return new_value; |
} |
private: |
T* pointer_; |