summaryrefslogtreecommitdiff
path: root/implementation/service_discovery/src/option_impl.cpp
diff options
context:
space:
mode:
authorDiogo Pedrosa <diogo12pedrosa@gmail.com>2023-03-09 17:57:35 +0000
committerDiogo Pedrosa <diogo12pedrosa@gmail.com>2023-03-10 14:41:51 +0000
commit826ebb8d352245a36ecaec32b6af61e7abf4696e (patch)
treed4e984dd100f3257ce784c9e30aefb6e60a93ab5 /implementation/service_discovery/src/option_impl.cpp
parentfc73f40fa1501dc53210c63cb7c0d7623d106370 (diff)
downloadvSomeIP-826ebb8d352245a36ecaec32b6af61e7abf4696e.tar.gz
vsomeip 3.3.0
Diffstat (limited to 'implementation/service_discovery/src/option_impl.cpp')
-rw-r--r--[-rwxr-xr-x]implementation/service_discovery/src/option_impl.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/implementation/service_discovery/src/option_impl.cpp b/implementation/service_discovery/src/option_impl.cpp
index eb92c1a..c055ff4 100755..100644
--- a/implementation/service_discovery/src/option_impl.cpp
+++ b/implementation/service_discovery/src/option_impl.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2018 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2014-2021 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/.
@@ -19,13 +19,9 @@ option_impl::option_impl() :
option_impl::~option_impl() {
}
-bool option_impl::operator ==(const option_impl &_other) const {
- return (type_ == _other.type_ && length_ == _other.length_);
-}
-
bool
-option_impl::equals(const std::shared_ptr<option_impl> &_other) const {
- return (this->operator ==(*(_other.get())));
+option_impl::equals(const option_impl &_other) const {
+ return (type_ == _other.get_type() && length_ == _other.get_length());
}
uint16_t option_impl::get_length() const {