diff options
author | Jürgen Gehring <juergen.gehring@bmw.de> | 2015-06-01 07:57:07 -0700 |
---|---|---|
committer | Jürgen Gehring <juergen.gehring@bmw.de> | 2015-06-01 07:57:07 -0700 |
commit | 54982071a99484488207ad3bd5e9391a15bffe02 (patch) | |
tree | 479c178ee629947cf0df65fc0e38f986f6ccdbc9 /src/CommonAPI/DBus/DBusClientId.cpp | |
parent | 45a6f65628a142bb8d37a3b72cb210b1f8c24a5f (diff) | |
download | genivi-common-api-dbus-runtime-54982071a99484488207ad3bd5e9391a15bffe02.tar.gz |
CommonAPI-D-Bus 3.1.13.1.1
Diffstat (limited to 'src/CommonAPI/DBus/DBusClientId.cpp')
-rw-r--r-- | src/CommonAPI/DBus/DBusClientId.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/CommonAPI/DBus/DBusClientId.cpp b/src/CommonAPI/DBus/DBusClientId.cpp index b68b7fa..7c9f195 100644 --- a/src/CommonAPI/DBus/DBusClientId.cpp +++ b/src/CommonAPI/DBus/DBusClientId.cpp @@ -1,14 +1,13 @@ -/* Copyright (C) 2013 BMW Group - * Author: Manfred Bathelt (manfred.bathelt@bmw.de) - * Author: Juergen Gehring (juergen.gehring@bmw.de) - * 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/. */ +// Copyright (C) 2013-2015 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/. -#include "DBusClientId.h" -#include "DBusMessage.h" #include <typeinfo> +#include <CommonAPI/DBus/DBusClientId.hpp> +#include <CommonAPI/DBus/DBusMessage.hpp> + namespace std { template<> @@ -33,7 +32,7 @@ bool DBusClientId::operator==(CommonAPI::ClientId& clientIdToCompare) { DBusClientId clientIdToCompareDBus = DBusClientId(dynamic_cast<DBusClientId&>(clientIdToCompare)); return (clientIdToCompareDBus == *this); } - catch (const std::bad_cast& e) { + catch (...) { return false; } } @@ -59,7 +58,5 @@ DBusMessage DBusClientId::createMessage(const std::string objectPath, const std: return(returnMessage); } -} /* namespace DBus */ -} /* namespace CommonAPI */ - - +} // namespace DBus +} // namespace CommonAPI |