diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | c92be2965c8c8f36aed1cf86d8e44915855b4806 (patch) | |
tree | 8450c8e6619284305c7d0c9152b24aeea49243f4 /src/mbgl/gl/uniform.hpp | |
parent | ed99a7781a6bedcdd682d1f9122c952a244e4c69 (diff) | |
download | qtlocation-mapboxgl-c92be2965c8c8f36aed1cf86d8e44915855b4806.tar.gz |
[core] Fix misc-unconventional-assign-operator errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/gl/uniform.hpp')
-rw-r--r-- | src/mbgl/gl/uniform.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/gl/uniform.hpp b/src/mbgl/gl/uniform.hpp index 9f752de8af..6714379217 100644 --- a/src/mbgl/gl/uniform.hpp +++ b/src/mbgl/gl/uniform.hpp @@ -39,11 +39,13 @@ class UniformState { public: UniformState(UniformLocation location_ = -1) : location(location_) {} - void operator=(const Value& value) { + UniformState& operator=(const Value& value) { if (location >= 0 && (!current || *current != value)) { current = value; bindUniform(location, value); } + + return *this; } UniformLocation location; |