summaryrefslogtreecommitdiff
path: root/include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp')
-rw-r--r--include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp b/include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp
index 25b2ecd..f1c8ac7 100644
--- a/include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp
+++ b/include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2014-2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -119,7 +119,7 @@ class DBusProxyAsyncCallbackHandler :
std::tuple<ArgTypes_...> args_;
private:
- template <int... ArgIndices_>
+ template <size_t... ArgIndices_>
inline CallStatus handleDBusMessageReply(
const CallStatus _dbusMessageCallStatus,
const DBusMessage& _dbusMessage,
@@ -132,10 +132,9 @@ class DBusProxyAsyncCallbackHandler :
if (_dbusMessageCallStatus == CallStatus::SUCCESS) {
DBusInputStream dbusInputStream(_dbusMessage);
- if(DBusSerializableArguments<ArgTypes_...>::deserialize(dbusInputStream,
+ if(!DBusSerializableArguments<ArgTypes_...>::deserialize(dbusInputStream,
std::get<ArgIndices_>(_argTuple)...)) {
- } else {
- callStatus = CallStatus::REMOTE_ERROR;
+ callStatus = CallStatus::SERIALIZATION_ERROR;
}
}
@@ -195,7 +194,7 @@ public:
private:
- template <int... ArgIndices_>
+ template <size_t... ArgIndices_>
inline CallStatus handleDBusMessageReply(
const CallStatus _dbusMessageCallStatus,
const DBusMessage& _dbusMessage,
@@ -208,10 +207,9 @@ private:
if (_dbusMessageCallStatus == CallStatus::SUCCESS) {
DBusInputStream dbusInputStream(_dbusMessage);
- if(DBusSerializableArguments<ArgTypes_...>::deserialize(dbusInputStream,
+ if (!DBusSerializableArguments<ArgTypes_...>::deserialize(dbusInputStream,
std::get<ArgIndices_>(_argTuple)...)) {
- } else {
- callStatus = CallStatus::REMOTE_ERROR;
+ callStatus = CallStatus::SERIALIZATION_ERROR;
}
} else {
if(_dbusMessage.isErrorType()) {