Chromium Code Reviews| Index: runtime/vm/dart_api_state.h |
| diff --git a/runtime/vm/dart_api_state.h b/runtime/vm/dart_api_state.h |
| index fc80adc4fc3752389b16996199169dc1ab7fd263..601f4b458efb0ccc98dea976da1245e81bfd4a89 100644 |
| --- a/runtime/vm/dart_api_state.h |
| +++ b/runtime/vm/dart_api_state.h |
| @@ -537,7 +537,7 @@ class ApiNativeScope { |
| Thread::GetThreadLocal(Api::api_native_key_)); |
| } |
| - ApiZone* zone() { return &zone_; } |
| + ApiZone& zone() { return zone_; } |
|
Ivan Posva
2012/02/15 16:08:46
It should probably really stay as a ApiZone*. Mayb
Søren Gjesse
2012/02/15 16:42:03
Done.
|
| private: |
| ApiZone zone_; |
| @@ -555,10 +555,10 @@ class ApiGrowableArray : public BaseGrowableArray<T, ValueObject> { |
| explicit ApiGrowableArray(int initial_capacity) |
| : BaseGrowableArray<T, ValueObject>( |
| initial_capacity, |
| - ApiNativeScope::Current()->zone()->GetBaseZone()) {} |
| + ApiNativeScope::Current()->zone().GetBaseZone()) {} |
| ApiGrowableArray() |
| : BaseGrowableArray<T, ValueObject>( |
| - ApiNativeScope::Current()->zone()->GetBaseZone()) {} |
| + ApiNativeScope::Current()->zone().GetBaseZone()) {} |
| }; |