diff options
Diffstat (limited to 'src/CommonAPI/DBus/DBusAddress.cpp')
-rw-r--r-- | src/CommonAPI/DBus/DBusAddress.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/CommonAPI/DBus/DBusAddress.cpp b/src/CommonAPI/DBus/DBusAddress.cpp index 4819a40..bae8190 100644 --- a/src/CommonAPI/DBus/DBusAddress.cpp +++ b/src/CommonAPI/DBus/DBusAddress.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// Copyright (C) 2015-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/. @@ -27,6 +27,15 @@ DBusAddress::DBusAddress(const DBusAddress &_source) DBusAddress::~DBusAddress() { } +DBusAddress & +DBusAddress::operator=(const DBusAddress &_other) { + service_ = _other.service_; + objectPath_ = _other.objectPath_; + interface_ = _other.interface_; + + return (*this); +} + bool DBusAddress::operator==(const DBusAddress &_other) const { return (service_ == _other.service_ && @@ -97,6 +106,5 @@ operator<<(std::ostream &_out, const DBusAddress &_dbusAddress) { return _out; } - } // namespace DBus } // namespace CommonAPI |