From 1bc41011009469de75e9b30c34d1bb3438e394ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 13 Mar 2020 15:03:40 +0100 Subject: [PATCH] Shaders: make method chaining return types consistent in templates. Not sure why C++ allows either, it only leads to inconsistency. --- src/Magnum/Shaders/DistanceFieldVector.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Magnum/Shaders/DistanceFieldVector.h b/src/Magnum/Shaders/DistanceFieldVector.h index 3330dc7b8..4b2e12b4a 100644 --- a/src/Magnum/Shaders/DistanceFieldVector.h +++ b/src/Magnum/Shaders/DistanceFieldVector.h @@ -106,7 +106,7 @@ template class MAGNUM_SHADERS_EXPORT DistanceFieldVector * * Initial value is an identity matrix. */ - DistanceFieldVector& setTransformationProjectionMatrix(const MatrixTypeFor& matrix); + DistanceFieldVector& setTransformationProjectionMatrix(const MatrixTypeFor& matrix); /** * @brief Set fill color @@ -115,7 +115,7 @@ template class MAGNUM_SHADERS_EXPORT DistanceFieldVector * Initial value is @cpp 0xffffffff_rgbaf @ce. * @see @ref setOutlineColor() */ - DistanceFieldVector& setColor(const Color4& color); + DistanceFieldVector& setColor(const Color4& color); /** * @brief Set outline color @@ -125,7 +125,7 @@ template class MAGNUM_SHADERS_EXPORT DistanceFieldVector * drawn --- see @ref setOutlineRange() for more information. * @see @ref setOutlineRange(), @ref setColor() */ - DistanceFieldVector& setOutlineColor(const Color4& color); + DistanceFieldVector& setOutlineColor(const Color4& color); /** * @brief Set outline range @@ -141,7 +141,7 @@ template class MAGNUM_SHADERS_EXPORT DistanceFieldVector * * @see @ref setOutlineColor() */ - DistanceFieldVector& setOutlineRange(Float start, Float end); + DistanceFieldVector& setOutlineRange(Float start, Float end); /** * @brief Set smoothness radius @@ -151,7 +151,7 @@ template class MAGNUM_SHADERS_EXPORT DistanceFieldVector * smaller values will make them look more crisp (but possibly * aliased). Initial value is @cpp 0.04f @ce. */ - DistanceFieldVector& setSmoothness(Float value); + DistanceFieldVector& setSmoothness(Float value); #ifndef DOXYGEN_GENERATING_OUTPUT /* Overloads to remove WTF-factor from method chaining order */