MXS-1810: Format utils.hh

Formatted utils.hh with Astyle.
This commit is contained in:
Markus Mäkelä
2018-04-18 11:30:26 +03:00
parent fd9e5af849
commit 640501c03a

View File

@ -190,7 +190,7 @@ struct RegistryTraits
static id_type get_id(entry_type entry) static id_type get_id(entry_type entry)
{ {
static_assert(sizeof(EntryType) != sizeof(EntryType), "get_id() and the" static_assert(sizeof(EntryType) != sizeof(EntryType), "get_id() and the"
" surrounding struct must be specialized for every EntryType!"); " surrounding struct must be specialized for every EntryType!");
return 0; return 0;
} }
static entry_type null_entry() static entry_type null_entry()
@ -273,7 +273,7 @@ private:
template<typename Ptr> template<typename Ptr>
bool equal_pointees(const Ptr& lhs, const Ptr& rhs) bool equal_pointees(const Ptr& lhs, const Ptr& rhs)
{ {
return *lhs == *rhs; return *lhs == *rhs;
} }
// Unary predicate for equality of pointed-to objects // Unary predicate for equality of pointed-to objects
@ -281,19 +281,19 @@ template<typename T>
class EqualPointees : public std::unary_function<T, bool> class EqualPointees : public std::unary_function<T, bool>
{ {
public: public:
EqualPointees(const T& lhs) : m_ppLhs(&lhs) {} EqualPointees(const T& lhs) : m_ppLhs(&lhs) {}
bool operator()(const T& pRhs) bool operator()(const T& pRhs)
{ {
return **m_ppLhs == *pRhs; return **m_ppLhs == *pRhs;
} }
private: private:
const T* m_ppLhs; const T* m_ppLhs;
}; };
template<typename T> template<typename T>
EqualPointees<T> equal_pointees(const T& t) EqualPointees<T> equal_pointees(const T& t)
{ {
return EqualPointees<T>(t); return EqualPointees<T>(t);
} }
} }