[Bf-blender-cvs] [f058e7b11af] functions: remove unnecessary check
Jacques Lucke
noreply at git.blender.org
Tue Jul 16 11:38:12 CEST 2019
Commit: f058e7b11af407d3f3589972f2e816a9ca7d143f
Author: Jacques Lucke
Date: Tue Jul 16 11:32:12 2019 +0200
Branches: functions
https://developer.blender.org/rBf058e7b11af407d3f3589972f2e816a9ca7d143f
remove unnecessary check
===================================================================
M source/blender/blenlib/BLI_shared.hpp
===================================================================
diff --git a/source/blender/blenlib/BLI_shared.hpp b/source/blender/blenlib/BLI_shared.hpp
index a12e1059586..9ab747c4770 100644
--- a/source/blender/blenlib/BLI_shared.hpp
+++ b/source/blender/blenlib/BLI_shared.hpp
@@ -101,10 +101,7 @@ template<typename T> class AutoRefCount {
~AutoRefCount()
{
- /* Can be nullptr when previously moved. */
- if (m_object != nullptr) {
- this->decref();
- }
+ this->decref();
}
AutoRefCount &operator=(const AutoRefCount &other)
More information about the Bf-blender-cvs
mailing list