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:
authorSybren A. Stüvel <sybren@blender.org>2020-09-04 13:04:47 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-09-04 13:04:47 +0300
commit8057ab10db5945db18ccb45265b91ce120ae0be5 (patch)
tree974381c1d2264099848b2c1c5ed8a469a980a32e /source/blender/freestyle
parent371ddda4d0b3c2ef0c40f604715db801dc33b669 (diff)
Cleanup: Clang-Tidy readability-const-return-type fixes
No functional changes.
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r--source/blender/freestyle/intern/stroke/Curve.cpp2
-rw-r--r--source/blender/freestyle/intern/stroke/Curve.h2
-rw-r--r--source/blender/freestyle/intern/view_map/Silhouette.cpp6
-rw-r--r--source/blender/freestyle/intern/view_map/Silhouette.h6
4 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/stroke/Curve.cpp b/source/blender/freestyle/intern/stroke/Curve.cpp
index 51c40c890a3..7129a35ffdb 100644
--- a/source/blender/freestyle/intern/stroke/Curve.cpp
+++ b/source/blender/freestyle/intern/stroke/Curve.cpp
@@ -421,7 +421,7 @@ const Polygon3r &CurvePoint::occludee() const
return __A->getFEdge(*__B)->occludee();
}
-const bool CurvePoint::occludee_empty() const
+bool CurvePoint::occludee_empty() const
{
if (__A == 0) {
return __B->occludee_empty();
diff --git a/source/blender/freestyle/intern/stroke/Curve.h b/source/blender/freestyle/intern/stroke/Curve.h
index 5f0d2a6aed7..518f4ff345b 100644
--- a/source/blender/freestyle/intern/stroke/Curve.h
+++ b/source/blender/freestyle/intern/stroke/Curve.h
@@ -325,7 +325,7 @@ class CurvePoint : public Interface0D {
int occluders_size() const;
const Polygon3r &occludee() const;
const SShape *occluded_shape() const;
- const bool occludee_empty() const;
+ bool occludee_empty() const;
real z_discontinuity() const;
#if 0
float local_average_depth() const;
diff --git a/source/blender/freestyle/intern/view_map/Silhouette.cpp b/source/blender/freestyle/intern/view_map/Silhouette.cpp
index 63c4fc8d5da..3280e56ea7e 100644
--- a/source/blender/freestyle/intern/view_map/Silhouette.cpp
+++ b/source/blender/freestyle/intern/view_map/Silhouette.cpp
@@ -83,7 +83,7 @@ const SShape *SVertex::shape() const
return _Shape;
}
-const int SVertex::qi() const
+int SVertex::qi() const
{
if (getNature() & Nature::T_VERTEX) {
Exception::raiseException();
@@ -139,7 +139,7 @@ const SShape *SVertex::occluded_shape() const
return (_FEdges[0])->occluded_shape();
}
-const bool SVertex::occludee_empty() const
+bool SVertex::occludee_empty() const
{
if (getNature() & Nature::T_VERTEX) {
Exception::raiseException();
@@ -275,7 +275,7 @@ int FEdge::occluders_size() const
return _ViewEdge->occluders_size();
}
-const bool FEdge::occludee_empty() const
+bool FEdge::occludee_empty() const
{
return _ViewEdge->occludee_empty();
}
diff --git a/source/blender/freestyle/intern/view_map/Silhouette.h b/source/blender/freestyle/intern/view_map/Silhouette.h
index 6463cd7eb3e..c27d6b633b4 100644
--- a/source/blender/freestyle/intern/view_map/Silhouette.h
+++ b/source/blender/freestyle/intern/view_map/Silhouette.h
@@ -430,14 +430,14 @@ class SVertex : public Interface0D {
const SShape *shape() const;
float shape_importance() const;
- const int qi() const;
+ int qi() const;
occluder_container::const_iterator occluders_begin() const;
occluder_container::const_iterator occluders_end() const;
bool occluders_empty() const;
int occluders_size() const;
const Polygon3r &occludee() const;
const SShape *occluded_shape() const;
- const bool occludee_empty() const;
+ bool occludee_empty() const;
real z_discontinuity() const;
#if 0
inline float local_average_depth() const;
@@ -907,7 +907,7 @@ class FEdge : public Interface1D {
}
#endif
- const bool occludee_empty() const;
+ bool occludee_empty() const;
real z_discontinuity() const;
#if 0