Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef UI_BASE_WIN_ATL_MODULE_H_ | 5 #ifndef UI_BASE_WIN_ATL_MODULE_H_ |
| 6 #define UI_BASE_WIN_ATL_MODULE_H_ | 6 #define UI_BASE_WIN_ATL_MODULE_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 // worrying about which side of a module boundary each ATL module object | 21 // worrying about which side of a module boundary each ATL module object |
| 22 // belongs on. | 22 // belongs on. |
| 23 // | 23 // |
| 24 // This function must be implemented in this header file rather than a | 24 // This function must be implemented in this header file rather than a |
| 25 // source file so that it's inlined into the module where it's included, | 25 // source file so that it's inlined into the module where it's included, |
| 26 // rather than in the "ui" module. | 26 // rather than in the "ui" module. |
| 27 static void CreateATLModuleIfNeeded() { | 27 static void CreateATLModuleIfNeeded() { |
| 28 if (_pAtlModule == NULL) { | 28 if (_pAtlModule == NULL) { |
| 29 // This creates the module and automatically updates _pAtlModule. | 29 // This creates the module and automatically updates _pAtlModule. |
| 30 CR_DEFINE_STATIC_LOCAL(CComModule, module, ()); | 30 CR_DEFINE_STATIC_LOCAL(CComModule, module, ()); |
| 31 static_cast<void>(module); // Suppress unused variable warnings. | |
|
Nico
2015/07/02 17:34:26
ALLOW_UNUSED_LOCAL(module);
Matt Giuca
2015/07/03 03:46:29
Done.
| |
| 31 } | 32 } |
| 32 } | 33 } |
| 33 | 34 |
| 34 } // namespace win | 35 } // namespace win |
| 35 } // namespace ui | 36 } // namespace ui |
| 36 | 37 |
| 37 #endif // UI_BASE_WIN_ATL_MODULE_H_ | 38 #endif // UI_BASE_WIN_ATL_MODULE_H_ |
| OLD | NEW |