From 891949cbb47143420f4324cb60efc05ef5d70b39 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 17:04:52 +1000 Subject: Cleanup: use 'u' prefixed integer types for brevity & cast style To use function style cast '(unsigned char)x' can't be replaced by 'unsigned char(x)'. --- source/blender/freestyle/intern/application/AppCanvas.cpp | 2 +- source/blender/freestyle/intern/application/Controller.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/freestyle/intern/application') diff --git a/source/blender/freestyle/intern/application/AppCanvas.cpp b/source/blender/freestyle/intern/application/AppCanvas.cpp index ee316bbf220..0367f5c1d6d 100644 --- a/source/blender/freestyle/intern/application/AppCanvas.cpp +++ b/source/blender/freestyle/intern/application/AppCanvas.cpp @@ -89,7 +89,7 @@ void AppCanvas::init() void AppCanvas::postDraw() { - for (unsigned int i = 0; i < _StyleModules.size(); i++) { + for (uint i = 0; i < _StyleModules.size(); i++) { if (!_StyleModules[i]->getDisplayed() || !_Layers[i]) { continue; } diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index cc815b5317f..08480533937 100644 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -1051,7 +1051,7 @@ void Controller::displayDensityCurves(int x, int y) return; } - unsigned int i, j; + uint i, j; using densityCurve = vector; vector curves(svm->getNumberOfOrientations() + 1); vector curvesDirection(svm->getNumberOfPyramidLevels()); -- cgit v1.2.3