summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-27 01:34:35 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-27 01:34:35 -0400
commitdf827af160fa255c56b9aaef644a2d9c4680977d (patch)
treedafda468a02b3a6c4a4585f3fea1062f45451651
parent292d71f513ee2dd3c276f950ca561704b2deb11b (diff)
Let's not use a macro for this...
-rw-r--r--editeng/source/items/flditem.cxx16
-rw-r--r--sc/source/ui/app/scdll.cxx6
2 files changed, 11 insertions, 11 deletions
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index a182a3689cf0..58f6ab1d5dc9 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -948,14 +948,14 @@ SvClassManager& SvxFieldItem::GetClassManager()
if ( !pClassMgr )
{
pClassMgr = new SvClassManager;
- pClassMgr->SV_CLASS_REGISTER( SvxFieldData );
- pClassMgr->SV_CLASS_REGISTER( SvxURLField );
- pClassMgr->SV_CLASS_REGISTER( SvxDateField );
- pClassMgr->SV_CLASS_REGISTER( SvxPageField );
- pClassMgr->SV_CLASS_REGISTER( SvxTimeField );
- pClassMgr->SV_CLASS_REGISTER( SvxExtTimeField );
- pClassMgr->SV_CLASS_REGISTER( SvxExtFileField );
- pClassMgr->SV_CLASS_REGISTER( SvxAuthorField );
+ pClassMgr->Register(SvxFieldData::StaticClassId(), SvxFieldData::CreateInstance);
+ pClassMgr->Register(SvxURLField::StaticClassId(), SvxURLField::CreateInstance);
+ pClassMgr->Register(SvxDateField::StaticClassId(), SvxDateField::CreateInstance);
+ pClassMgr->Register(SvxPageField::StaticClassId(), SvxPageField::CreateInstance);
+ pClassMgr->Register(SvxTimeField::StaticClassId(), SvxTimeField::CreateInstance);
+ pClassMgr->Register(SvxExtTimeField::StaticClassId(), SvxExtTimeField::CreateInstance);
+ pClassMgr->Register(SvxExtFileField::StaticClassId(), SvxExtFileField::CreateInstance);
+ pClassMgr->Register(SvxAuthorField::StaticClassId(), SvxAuthorField::CreateInstance);
}
return *pClassMgr;
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 25712d467df3..2d9af1606680 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -295,9 +295,9 @@ void ScDLL::Init()
// Edit-Engine-Felder, soweit nicht schon in OfficeApplication::Init
SvClassManager& rClassManager = SvxFieldItem::GetClassManager();
- rClassManager.SV_CLASS_REGISTER( SvxPagesField );
- rClassManager.SV_CLASS_REGISTER( SvxFileField );
- rClassManager.SV_CLASS_REGISTER( SvxTableField );
+ rClassManager.Register(SvxPagesField::StaticClassId(), SvxPagesField::CreateInstance);
+ rClassManager.Register(SvxFileField::StaticClassId(), SvxFileField::CreateInstance);
+ rClassManager.Register(SvxTableField::StaticClassId(), SvxTableField::CreateInstance);
SdrRegisterFieldClasses(); // SvDraw-Felder registrieren