diff options
Diffstat (limited to 'ash/wm/property_util.cc')
-rw-r--r-- | ash/wm/property_util.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ash/wm/property_util.cc b/ash/wm/property_util.cc index eaac484..4975f35 100644 --- a/ash/wm/property_util.cc +++ b/ash/wm/property_util.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -22,13 +22,12 @@ void SetRestoreBoundsIfNotSet(aura::Window* window) { } const gfx::Rect* GetRestoreBounds(aura::Window* window) { - return reinterpret_cast<gfx::Rect*>( - window->GetProperty(aura::client::kRestoreBoundsKey)); + return window->GetProperty(aura::client::kRestoreBoundsKey); } void ClearRestoreBounds(aura::Window* window) { delete GetRestoreBounds(window); - window->SetProperty(aura::client::kRestoreBoundsKey, NULL); + window->ClearProperty(aura::client::kRestoreBoundsKey); } } |