| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/scoped_variant_win.h" | 5 #include "base/win/scoped_variant.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 | 7 |
| 8 namespace base { | 8 namespace base { |
| 9 namespace win { | 9 namespace win { |
| 10 | 10 |
| 11 // Global, const instance of an empty variant. | 11 // Global, const instance of an empty variant. |
| 12 const VARIANT ScopedVariant::kEmptyVariant = { VT_EMPTY }; | 12 const VARIANT ScopedVariant::kEmptyVariant = { VT_EMPTY }; |
| 13 | 13 |
| 14 ScopedVariant::~ScopedVariant() { | 14 ScopedVariant::~ScopedVariant() { |
| 15 COMPILE_ASSERT(sizeof(ScopedVariant) == sizeof(VARIANT), ScopedVariantSize); | 15 COMPILE_ASSERT(sizeof(ScopedVariant) == sizeof(VARIANT), ScopedVariantSize); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 if (!leakable && (vt & VT_ARRAY) != 0) { | 268 if (!leakable && (vt & VT_ARRAY) != 0) { |
| 269 leakable = true; | 269 leakable = true; |
| 270 } | 270 } |
| 271 | 271 |
| 272 return leakable; | 272 return leakable; |
| 273 } | 273 } |
| 274 | 274 |
| 275 } // namespace win | 275 } // namespace win |
| 276 } // namespace base | 276 } // namespace base |
| OLD | NEW |