Skip to content

Commit 128f0bb

Browse files
author
arkhip0v0
committed
Remove clang-analyzer-cplusplus.NewDelete
remove NewDelete commit_hash:6d412fd0dfd8c12688c8e591ae632fb281c22e04
1 parent faff5fb commit 128f0bb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

contrib/restricted/boost/smart_ptr/include/boost/smart_ptr/detail/shared_count.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class weak_count
536536

537537
~weak_count() /*noexcept*/
538538
{
539-
if(pi_ != 0) pi_->weak_release();
539+
if(pi_ != 0) pi_->weak_release(); // NOLINT
540540
#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
541541
id_ = 0;
542542
#endif
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/include/boost/smart_ptr/detail/shared_count.hpp
2+
+++ b/include/boost/smart_ptr/detail/shared_count.hpp
3+
@@ -536,7 +536,7 @@ public:
4+
5+
~weak_count() /*noexcept*/
6+
{
7+
- if(pi_ != 0) pi_->weak_release();
8+
+ if(pi_ != 0) pi_->weak_release(); // NOLINT
9+
#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
10+
id_ = 0;
11+
#endif

0 commit comments

Comments
 (0)