Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: ui/aura/window_property.h

Issue 10533063: Use unique name for property deallocator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_property.h
diff --git a/ui/aura/window_property.h b/ui/aura/window_property.h
index 796aa08d6addc4931a8a9255dc4f1ab6aa64c229..118df4c73d075a285dca5fb8559cfede1653336c 100644
--- a/ui/aura/window_property.h
+++ b/ui/aura/window_property.h
@@ -129,14 +129,14 @@ void Window::ClearProperty(const WindowProperty<T>* property) {
}
#define DEFINE_OWNED_WINDOW_PROPERTY_KEY(TYPE, NAME, DEFAULT) \
- namespace { \
- enum { type_must_be_complete = sizeof(TYPE) }; \
- void Deallocator(intptr_t p) { \
+ namespace { \
+ void Deallocator ## NAME (intptr_t p) { \
+ enum { type_must_be_complete = sizeof(TYPE) }; \
delete aura::WindowPropertyCaster<TYPE*>::FromIntptrT(p); \
- } \
- const aura::WindowProperty<TYPE*> NAME ## _Value = \
- {DEFAULT,#NAME,&Deallocator}; \
- } \
+ } \
+ const aura::WindowProperty<TYPE*> NAME ## _Value = \
+ {DEFAULT,#NAME,&Deallocator ## NAME}; \
+ } \
const aura::WindowProperty<TYPE*>* const NAME = & NAME ## _Value;
#endif // UI_AURA_WINDOW_PROPERTY_H_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698