Fix to store the select response
[platform/core/connectivity/smartcard-service.git] / common / include / Channel.h
index 2e0579f..fda7386 100644 (file)
@@ -41,10 +41,10 @@ namespace smartcard_service_api
                SessionHelper *session;
                int channelNum;
 
-               Channel() : Synchronous() { channelNum = -1; }
-               Channel(SessionHelper *session) : Synchronous() { this->session = session; }
+               Channel() : session(NULL), channelNum(-1) {}
+               Channel(SessionHelper *session) : session(session), channelNum(-1) {}
 
-               inline void setSelectResponse(ByteArray &response) { selectResponse = response; }
+               inline void setSelectResponse(ByteArray response) { selectResponse = response; }
 
        public :
                virtual ~Channel() {};