diff options
author | Hans Goudey <h.goudey@me.com> | 2022-05-30 18:46:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-05-30 18:46:44 +0300 |
commit | 3f9376851bca4e01296a98f68ad1d64462905b94 (patch) | |
tree | fd992870f029c9f99cfd0e5bd2163635a0b0c66d /source/blender/draw/intern/draw_curves.cc | |
parent | 3437cf155e7ca73cb96882ed5372f5baf2eac78a (diff) |
Cleanup: Clang tidy
Mostly duplicate includes, also use nullptr, and using default
member initializers.
Diffstat (limited to 'source/blender/draw/intern/draw_curves.cc')
-rw-r--r-- | source/blender/draw/intern/draw_curves.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_curves.cc b/source/blender/draw/intern/draw_curves.cc index d90c63b680e..39d4845994f 100644 --- a/source/blender/draw/intern/draw_curves.cc +++ b/source/blender/draw/intern/draw_curves.cc @@ -81,9 +81,9 @@ struct CurvesUniformBufPool { { if (used >= ubos.size()) { ubos.append(std::make_unique<CurvesInfosBuf>()); - return *ubos.last().get(); + return *ubos.last(); } - return *ubos[used++].get(); + return *ubos[used++]; } }; |