diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:01:10 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:01:10 +0100 |
commit | 1af130201092bd77cd4ce37352c0ae6ed5518075 (patch) | |
tree | 90d4178c136e64345744f89b4a46987234e74932 /components/script/dom | |
parent | 04f5dea19f3c493ce8b3df1f5bb77241f3f3d323 (diff) | |
download | servo-1af130201092bd77cd4ce37352c0ae6ed5518075.tar.gz servo-1af130201092bd77cd4ce37352c0ae6ed5518075.zip |
Use snake case for the local in initialize_global.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index afa3cbda6e4..2df02a3ed18 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -339,10 +339,11 @@ pub unsafe extern fn throwing_constructor(cx: *mut JSContext, _argc: c_uint, /// Construct and cache the ProtoOrIfaceArray for the given global. /// Fails if the argument is not a DOM global. pub fn initialize_global(global: *mut JSObject) { - let protoArray = box () ([0 as *mut JSObject; PrototypeList::ID::Count as uint]); + let proto_array = box () + ([0 as *mut JSObject; PrototypeList::ID::Count as uint]); unsafe { assert!(((*JS_GetClass(global)).flags & JSCLASS_DOM_GLOBAL) != 0); - let box_ = squirrel_away_unique(protoArray); + let box_ = squirrel_away_unique(proto_array); JS_SetReservedSlot(global, DOM_PROTOTYPE_SLOT, PrivateValue(box_ as *const libc::c_void)); |