From 8057ab10db5945db18ccb45265b91ce120ae0be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 4 Sep 2020 12:04:47 +0200 Subject: Cleanup: Clang-Tidy readability-const-return-type fixes No functional changes. --- source/blender/freestyle/intern/stroke/Curve.cpp | 2 +- source/blender/freestyle/intern/stroke/Curve.h | 2 +- source/blender/freestyle/intern/view_map/Silhouette.cpp | 6 +++--- source/blender/freestyle/intern/view_map/Silhouette.h | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/freestyle') 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 -- cgit v1.2.3