[Fwk] Improved static initializer naming

This commit is contained in:
Magne Sjaastad 2015-11-27 10:01:17 +01:00
parent 563aa95abf
commit bf5de93113
4 changed files with 8 additions and 9 deletions

View File

@ -47,7 +47,7 @@ CAF_PDM_UI_REGISTER_DEFAULT_FIELD_EDITOR(caf::PdmUiColorEditor, cvf::Color3f);
// in a cpp file, a dummy static class must be used to make sure the compile unit // in a cpp file, a dummy static class must be used to make sure the compile unit
// is included // is included
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
Color3fDummy::Color3fDummy() PdmColor3fInitializer::PdmColor3fInitializer()
{ {
} }

View File

@ -91,9 +91,9 @@ public:
// in a cpp file, a dummy static class must be used to make sure the compile unit // in a cpp file, a dummy static class must be used to make sure the compile unit
// is included // is included
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
class Color3fDummy class PdmColor3fInitializer
{ {
public: public:
Color3fDummy(); PdmColor3fInitializer();
}; };
static Color3fDummy cafPdmColor3fDummy; static PdmColor3fInitializer pdmColor3fInitializer;

View File

@ -49,7 +49,6 @@ CAF_PDM_UI_REGISTER_DEFAULT_FIELD_EDITOR(caf::PdmUiListEditor, std::vector<cvf::
// in a cpp file, a dummy static class must be used to make sure the compile unit // in a cpp file, a dummy static class must be used to make sure the compile unit
// is included // is included
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
Vec3dDummy::Vec3dDummy() PdmVec3dInitializer::PdmVec3dInitializer()
{ {
} }

View File

@ -90,9 +90,9 @@ public:
// in a cpp file, a dummy static class must be used to make sure the compile unit // in a cpp file, a dummy static class must be used to make sure the compile unit
// is included // is included
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
class Vec3dDummy class PdmVec3dInitializer
{ {
public: public:
Vec3dDummy(); PdmVec3dInitializer();
}; };
static Vec3dDummy cafPdmVec3dDummy; static PdmVec3dInitializer pdmVec3dInitializer;