We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119a248 commit cfc0a45Copy full SHA for cfc0a45
ChangeLog
@@ -1,4 +1,5 @@
1
Current
2
+ * Removed redundant assignment (issue #422 @fluber)
3
* Removed unnecessary null checks before delete (issue #420 @elfring)
4
* Reverted PR #424 due to lack of portability
5
* fscanf fix (PR #467 @rdelfin)
src/cpp/flann/util/any.h
@@ -78,8 +78,10 @@ struct big_any_policy : typed_base_any_policy<T>
78
{
79
virtual void static_delete(void** x)
80
81
- if (* x) delete (* reinterpret_cast<T**>(x));
82
- *x = NULL;
+ if (* x) {
+ delete (* reinterpret_cast<T**>(x));
83
+ *x = NULL;
84
+ }
85
}
86
virtual void copy_from_value(void const* src, void** dest)
87
0 commit comments