diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2015-02-16 11:02:21 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2015-02-16 11:02:21 +0100 |
commit | 181c0c59e4a42fad94b599d2e7ec18fad0c013d5 (patch) | |
tree | f17c355fde0dacd384a8652bc97036a42e7277e5 | |
parent | 6ec92721cbe8f106c61780bdf982fe518b6fa355 (diff) |
platform_DLL.cpp: avoid redundant "this" pointer check
clang 3.5.0 warns about checking the "this" pointer because it cannot
be NULL. This safe-guard against incorrect usage of the class indeed
seems to be impossible, so remove the check.
-rwxr-xr-x | src/platform_adapters/linux/platform_DLL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform_adapters/linux/platform_DLL.cpp b/src/platform_adapters/linux/platform_DLL.cpp index 113e749..0c804d7 100755 --- a/src/platform_adapters/linux/platform_DLL.cpp +++ b/src/platform_adapters/linux/platform_DLL.cpp @@ -152,7 +152,7 @@ public: bool destroy() { bool ok = true; - if (this) { + if (true /* this */) { if (aDLL) { int err = dlclose(aDLL); ok = !err; |