[Bf-blender-cvs] [d10700a3ac4] master: Cleanup: number literals

Campbell Barton noreply at git.blender.org
Thu Mar 4 07:44:02 CET 2021


Commit: d10700a3ac4ae827a8f429df858fc45ff0e6295e
Author: Campbell Barton
Date:   Thu Mar 4 16:55:50 2021 +1100
Branches: master
https://developer.blender.org/rBd10700a3ac4ae827a8f429df858fc45ff0e6295e

Cleanup: number literals

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

M	source/blender/blenlib/intern/storage.c
M	source/blender/editors/gpencil/gpencil_edit_curve.c
M	source/blender/windowmanager/intern/wm_operator_props.c

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

diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index bb00755e901..287334a34ee 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -377,7 +377,7 @@ int BLI_exists(const char *path)
   struct stat st;
   BLI_assert(!BLI_path_is_rel(path));
   if (stat(path, &st)) {
-    return (0);
+    return 0;
   }
 #endif
   return (st.st_mode);
diff --git a/source/blender/editors/gpencil/gpencil_edit_curve.c b/source/blender/editors/gpencil/gpencil_edit_curve.c
index 0f9a8c93df9..e766a410889 100644
--- a/source/blender/editors/gpencil/gpencil_edit_curve.c
+++ b/source/blender/editors/gpencil/gpencil_edit_curve.c
@@ -131,7 +131,7 @@ void GPENCIL_OT_stroke_enter_editcurve_mode(wmOperatorType *ot)
                        "Error Threshold",
                        "Threshold on the maximum deviation from the actual stroke",
                        FLT_MIN,
-                       10.f);
+                       10.0f);
   RNA_def_property_ui_range(prop, FLT_MIN, 10.0f, 0.1f, 5);
 }
 
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c
index aeab1ee6fca..ba236988c1d 100644
--- a/source/blender/windowmanager/intern/wm_operator_props.c
+++ b/source/blender/windowmanager/intern/wm_operator_props.c
@@ -291,7 +291,7 @@ void WM_operator_properties_select_random(wmOperatorType *ot)
                        1.0f,
                        "Ratio",
                        "Portion of items to select randomly",
-                       0.f,
+                       0.0f,
                        1.0f);
   RNA_def_int(ot->srna,
               "seed",



More information about the Bf-blender-cvs mailing list