Add-ons: rename ContactTraits to contact_traits for style consistency
This will be consistent with other traits classes such as shared_ptr_traits (in flightgear::addons as well as in nasal namespaces).
This commit is contained in:
parent
59d8dea0d7
commit
a999b87e06
3 changed files with 7 additions and 7 deletions
|
@ -500,10 +500,10 @@ parseContactsNode_readNode(const SGPath& metadataFile,
|
|||
|
||||
// Static method template (private and only used in this file)
|
||||
template <class T>
|
||||
vector<typename ContactTraits<T>::strong_ref>
|
||||
vector<typename contact_traits<T>::strong_ref>
|
||||
Addon::parseContactsNode(const SGPath& metadataFile, SGPropertyNode* mainNode)
|
||||
{
|
||||
using contactTraits = ContactTraits<T>;
|
||||
using contactTraits = contact_traits<T>;
|
||||
vector<typename contactTraits::strong_ref> res;
|
||||
|
||||
if (mainNode != nullptr) {
|
||||
|
|
|
@ -182,7 +182,7 @@ private:
|
|||
// Return the corresponding vector<AuthorRef> or vector<MaintainerRef>. If
|
||||
// the 'mainNode' argument is nullptr, return an empty vector.
|
||||
template <class T>
|
||||
static std::vector<typename ContactTraits<T>::strong_ref>
|
||||
static std::vector<typename contact_traits<T>::strong_ref>
|
||||
parseContactsNode(const SGPath& metadataFile, SGPropertyNode* mainNode);
|
||||
|
||||
// The add-on identifier, in reverse DNS style. The AddonManager refuses to
|
||||
|
|
|
@ -89,14 +89,14 @@ public:
|
|||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// * ContactTraits *
|
||||
// * contact_traits *
|
||||
// ***************************************************************************
|
||||
|
||||
template <typename T>
|
||||
struct ContactTraits;
|
||||
struct contact_traits;
|
||||
|
||||
template<>
|
||||
struct ContactTraits<Author>
|
||||
struct contact_traits<Author>
|
||||
{
|
||||
using contact_type = Author;
|
||||
using strong_ref = AuthorRef;
|
||||
|
@ -108,7 +108,7 @@ struct ContactTraits<Author>
|
|||
};
|
||||
|
||||
template<>
|
||||
struct ContactTraits<Maintainer>
|
||||
struct contact_traits<Maintainer>
|
||||
{
|
||||
using contact_type = Maintainer;
|
||||
using strong_ref = MaintainerRef;
|
||||
|
|
Loading…
Add table
Reference in a new issue