Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-26 03:04:44 +0300
committerCampbell Barton <campbell@blender.org>2022-09-26 03:09:15 +0300
commit8a68f4f80814a28d68055a0ae0b22a7efe1c2619 (patch)
treec89d4c3343836b0b8321be1beb55d7b547a6d6a3 /source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
parent15f3cf7f8f956a6372b6a99788b622946ba3d1e5 (diff)
Cleanup: replace unsigned with uint, use function style casts for C++
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp b/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
index 16b08722fb2..114fafea55b 100644
--- a/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
+++ b/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
@@ -98,7 +98,7 @@ static PyObject *ContextFunctions_load_map(PyObject * /*self*/, PyObject *args,
{
static const char *kwlist[] = {"file_name", "map_name", "num_levels", "sigma", nullptr};
char *fileName, *mapName;
- unsigned nbLevels = 4;
+ uint nbLevels = 4;
float sigma = 1.0;
if (!PyArg_ParseTupleAndKeywords(
@@ -135,7 +135,7 @@ static PyObject *ContextFunctions_read_map_pixel(PyObject * /*self*/,
static const char *kwlist[] = {"map_name", "level", "x", "y", nullptr};
char *mapName;
int level;
- unsigned x, y;
+ uint x, y;
if (!PyArg_ParseTupleAndKeywords(
args, kwds, "siII", (char **)kwlist, &mapName, &level, &x, &y)) {
@@ -167,7 +167,7 @@ static PyObject *ContextFunctions_read_complete_view_map_pixel(PyObject * /*self
{
static const char *kwlist[] = {"level", "x", "y", nullptr};
int level;
- unsigned x, y;
+ uint x, y;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "iII", (char **)kwlist, &level, &x, &y)) {
return nullptr;
@@ -201,7 +201,7 @@ static PyObject *ContextFunctions_read_directional_view_map_pixel(PyObject * /*s
{
static const char *kwlist[] = {"orientation", "level", "x", "y", nullptr};
int orientation, level;
- unsigned x, y;
+ uint x, y;
if (!PyArg_ParseTupleAndKeywords(
args, kwds, "iiII", (char **)kwlist, &orientation, &level, &x, &y)) {