Cleanup: correct variable names
authorCampbell Barton <ideasman42@gmail.com>
Mon, 21 May 2018 08:53:50 +0000 (10:53 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 21 May 2018 08:53:50 +0000 (10:53 +0200)
source/blender/makesrna/intern/rna_wm_api.c

index 6b338f0fda2176f5d74f63dae30d90c250c0a810..4ba214447fdbc0892ebf45093273d5371224a9ba 100644 (file)
@@ -304,17 +304,17 @@ static PointerRNA rna_KeyConfig_find_item_from_operator(
         int opcontext,
         PointerRNA *properties,
         int is_hotkey,
-        PointerRNA *kmi_ptr)
+        PointerRNA *km_ptr)
 {
        char idname_bl[OP_MAX_TYPENAME];
        WM_operator_bl_idname(idname_bl, idname);
 
        wmKeyMap *km = NULL;
        wmKeyMapItem *kmi = WM_key_event_operator(C, idname_bl, opcontext, properties->data, (bool)is_hotkey, &km);
-       PointerRNA km_ptr;
-       RNA_pointer_create(&wm->id, &RNA_KeyMap, km, kmi_ptr);
-       RNA_pointer_create(&wm->id, &RNA_KeyMapItem, kmi, &km_ptr);
-       return km_ptr;
+       PointerRNA kmi_ptr;
+       RNA_pointer_create(&wm->id, &RNA_KeyMap, km, km_ptr);
+       RNA_pointer_create(&wm->id, &RNA_KeyMapItem, kmi, &kmi_ptr);
+       return kmi_ptr;
 }
 
 static void rna_KeyConfig_update(wmWindowManager *wm)