Kaydet (Commit) ddf93e2c authored tarafından Caolán McNamara's avatar Caolán McNamara

try better template friend class syntax

üst 1cf8e70f
...@@ -45,11 +45,10 @@ public: ...@@ -45,11 +45,10 @@ public:
// further request for any other language supply the resmgr of the first call. // further request for any other language supply the resmgr of the first call.
// For the simple resmgr we have a mgr for each language ever requested). // For the simple resmgr we have a mgr for each language ever requested).
public: private:
ImpSvlData(): /// Can only construct via singleton
pStoringPool(0), m_pThreadsafeRMs(NULL) template<typename T, typename Unique> friend class rtl::Static;
{} ImpSvlData() : pStoringPool(0), m_pThreadsafeRMs(NULL) {}
~ImpSvlData(); ~ImpSvlData();
public: public:
......
...@@ -79,8 +79,9 @@ private: ...@@ -79,8 +79,9 @@ private:
/// This ma translates from numerical color values to names. /// This ma translates from numerical color values to names.
tColorValueToNameMap maColorValueToNameMap; tColorValueToNameMap maColorValueToNameMap;
public: private:
/// Create a new (the only) instance of this class. /// Can only construct via singleton
template<typename T, typename Unique> friend class rtl::Static;
DGColorNameLookUp(); DGColorNameLookUp();
~DGColorNameLookUp(); ~DGColorNameLookUp();
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment