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-01-07 03:38:08 +0300
committerCampbell Barton <campbell@blender.org>2022-01-07 06:16:26 +0300
commit3d3bc748849834ef74563deb603ab43859cffeeb (patch)
treede74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/nodes/NOD_socket_declarations.hh
parentbb69c19f08ac681d4386325e4318ebfbef2e9531 (diff)
Cleanup: remove redundant const qualifiers for POD types
MSVC used to warn about const mismatch for arguments passed by value. Remove these as newer versions of MSVC no longer show this warning.
Diffstat (limited to 'source/blender/nodes/NOD_socket_declarations.hh')
-rw-r--r--source/blender/nodes/NOD_socket_declarations.hh18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/nodes/NOD_socket_declarations.hh b/source/blender/nodes/NOD_socket_declarations.hh
index c0ba949e337..c0580a2c919 100644
--- a/source/blender/nodes/NOD_socket_declarations.hh
+++ b/source/blender/nodes/NOD_socket_declarations.hh
@@ -47,9 +47,9 @@ class Float : public SocketDeclaration {
class FloatBuilder : public SocketDeclarationBuilder<Float> {
public:
- FloatBuilder &min(const float value);
- FloatBuilder &max(const float value);
- FloatBuilder &default_value(const float value);
+ FloatBuilder &min(float value);
+ FloatBuilder &max(float value);
+ FloatBuilder &default_value(float value);
FloatBuilder &subtype(PropertySubType subtype);
};
@@ -75,9 +75,9 @@ class Int : public SocketDeclaration {
class IntBuilder : public SocketDeclarationBuilder<Int> {
public:
- IntBuilder &min(const int value);
- IntBuilder &max(const int value);
- IntBuilder &default_value(const int value);
+ IntBuilder &min(int value);
+ IntBuilder &max(int value);
+ IntBuilder &default_value(int value);
IntBuilder &subtype(PropertySubType subtype);
};
@@ -105,8 +105,8 @@ class VectorBuilder : public SocketDeclarationBuilder<Vector> {
public:
VectorBuilder &default_value(const float3 value);
VectorBuilder &subtype(PropertySubType subtype);
- VectorBuilder &min(const float min);
- VectorBuilder &max(const float max);
+ VectorBuilder &min(float min);
+ VectorBuilder &max(float max);
VectorBuilder &compact();
};
@@ -127,7 +127,7 @@ class Bool : public SocketDeclaration {
class BoolBuilder : public SocketDeclarationBuilder<Bool> {
public:
- BoolBuilder &default_value(const bool value);
+ BoolBuilder &default_value(bool value);
};
class ColorBuilder;