[Telepathy-commits] [telepathy-qt4/master] Account: Fixed coding style.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Thu Jan 15 12:45:08 PST 2009
---
TelepathyQt4/Client/account.cpp | 3 ++-
TelepathyQt4/Client/account.h | 9 ++++++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/TelepathyQt4/Client/account.cpp b/TelepathyQt4/Client/account.cpp
index 500a6e9..f60ae46 100644
--- a/TelepathyQt4/Client/account.cpp
+++ b/TelepathyQt4/Client/account.cpp
@@ -153,7 +153,8 @@ Account::Private::~Private()
* Object representing a Telepathy account.
*/
-/*! \enum Account::InterfaceSupportedChecking
+/**
+ * \enum Account::InterfaceSupportedChecking
*
* Specifies if the interface being supported by the remote object should be
* checked by optionalInterface() and the convenience functions for it.
diff --git a/TelepathyQt4/Client/account.h b/TelepathyQt4/Client/account.h
index 29bea0d..f5e5037 100644
--- a/TelepathyQt4/Client/account.h
+++ b/TelepathyQt4/Client/account.h
@@ -142,12 +142,14 @@ public:
// TODO this is a copy/paste from Connection, move it somewhere else that
// could be shared between classes
template <class Interface>
- inline Interface* optionalInterface(InterfaceSupportedChecking check = CheckInterfaceSupported) const
+ inline Interface *optionalInterface(
+ InterfaceSupportedChecking check = CheckInterfaceSupported) const
{
// Check for the remote object supporting the interface
QString name(Interface::staticInterfaceName());
- if (check == CheckInterfaceSupported && !interfaces().contains(name))
+ if (check == CheckInterfaceSupported && !interfaces().contains(name)) {
return 0;
+ }
// If present or forced, delegate to OptionalInterfaceFactory
return OptionalInterfaceFactory::interface<Interface>(*baseInterface());
@@ -158,7 +160,8 @@ public:
return optionalInterface<DBus::PropertiesInterface>(BypassInterfaceCheck);
}
- inline AccountInterfaceAvatarInterface *avatarInterface(InterfaceSupportedChecking check = CheckInterfaceSupported) const
+ inline AccountInterfaceAvatarInterface *avatarInterface(
+ InterfaceSupportedChecking check = CheckInterfaceSupported) const
{
return optionalInterface<AccountInterfaceAvatarInterface>(check);
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list