summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-02-16 11:02:21 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2015-02-16 11:02:21 +0100
commit181c0c59e4a42fad94b599d2e7ec18fad0c013d5 (patch)
treef17c355fde0dacd384a8652bc97036a42e7277e5
parent6ec92721cbe8f106c61780bdf982fe518b6fa355 (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-xsrc/platform_adapters/linux/platform_DLL.cpp2
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;