[Bf-blender-cvs] [a294d3a] master: Cleanup: some boolean int to real bool.

Bastien Montagne noreply at git.blender.org
Tue Jan 14 21:52:40 CET 2014


Commit: a294d3a18fd6c9cf8d5871e169377ff66444a74c
Author: Bastien Montagne
Date:   Tue Jan 14 15:52:16 2014 +0100
https://developer.blender.org/rBa294d3a18fd6c9cf8d5871e169377ff66444a74c

Cleanup: some boolean int to real bool.

===================================================================

M	source/blender/windowmanager/intern/wm_keymap.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index 8e202eb..4758ba5 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -1086,12 +1086,12 @@ int WM_keymap_item_compare(wmKeyMapItem *k1, wmKeyMapItem *k2)
  * the preset, addon and user preferences keymaps. We also test if the final
  * configuration changed and write the changes to the user preferences. */
 
-static int WM_KEYMAP_UPDATE = 0;
+static bool WM_KEYMAP_UPDATE = false;
 
 void WM_keyconfig_update_tag(wmKeyMap *km, wmKeyMapItem *kmi)
 {
 	/* quick tag to do delayed keymap updates */
-	WM_KEYMAP_UPDATE = 1;
+	WM_KEYMAP_UPDATE = true;
 
 	if (km)
 		km->flag |= KEYMAP_UPDATE;
@@ -1132,7 +1132,7 @@ void WM_keyconfig_update(wmWindowManager *wm)
 	wmKeyMap *km, *defaultmap, *addonmap, *usermap, *kmn;
 	wmKeyMapItem *kmi;
 	wmKeyMapDiffItem *kmdi;
-	int compat_update = 0;
+	bool compat_update = false;
 
 	if (G.background)
 		return;
@@ -1189,7 +1189,7 @@ void WM_keyconfig_update(wmWindowManager *wm)
 		compat_update = compat_update || (usermap && !(usermap->flag & KEYMAP_DIFF));
 	}
 
-	WM_KEYMAP_UPDATE = 0;
+	WM_KEYMAP_UPDATE = false;
 
 	if (compat_update) {
 		WM_keyconfig_update_tag(NULL, NULL);




More information about the Bf-blender-cvs mailing list