From 2c3a3ca76a57efa1cd825d140fb26fdec3482ee8 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 4 Dec 2017 23:36:00 +0100 Subject: Useless tests against uninitialized value Values has to be set. Change-Id: Ia8fcd23e68b79de5cd0316c81341ac41643750b5 Signed-off-by: Romain Forlot --- signal-composer-binding/signal.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'signal-composer-binding') diff --git a/signal-composer-binding/signal.cpp b/signal-composer-binding/signal.cpp index ab8723e..e7156dc 100644 --- a/signal-composer-binding/signal.cpp +++ b/signal-composer-binding/signal.cpp @@ -144,10 +144,8 @@ struct signalCBT* Signal::get_context() { struct signalCBT* ctx = new struct signalCBT; - if(!ctx->searchNsetSignalValue) - {ctx->searchNsetSignalValue = searchNsetSignalValueHandle;} - if(!ctx->setSignalValue) - {ctx->setSignalValue = setSignalValueHandle;} + ctx->searchNsetSignalValue = searchNsetSignalValueHandle; + ctx->setSignalValue = setSignalValueHandle; ctx->aSignal = (void*)this; return ctx; -- cgit 1.2.3-korg