summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp')
-rw-r--r--umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp b/umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp
index d96ad398..2c983a15 100644
--- a/umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp
+++ b/umbrello/umbrello/codegenerators/cppheadercodeaccessormethod.cpp
@@ -56,12 +56,12 @@ CPPHeaderCodeAccessorMethod::~CPPHeaderCodeAccessorMethod ( ) { }
// we basically want to update the body of this method
void CPPHeaderCodeAccessorMethod::updateContent( )
{
- CodeClassField * parentField = getParentClassField();
- CPPCodeClassField * cppfield = dynamic_cast<CPPCodeClassField*>(parentField);
+ CodeClassField * tqparentField = getParentClassField();
+ CPPCodeClassField * cppfield = dynamic_cast<CPPCodeClassField*>(tqparentField);
CodeGenPolicyExt *pe = UMLApp::app()->getPolicyExt();
CPPCodeGenerationPolicy * policy = dynamic_cast<CPPCodeGenerationPolicy*>(pe);
bool isInlineMethod = policy->getAccessorsAreInline( );
- Uml::Visibility scope = parentField->getVisibility();
+ Uml::Visibility scope = tqparentField->getVisibility();
TQString variableName = cppfield->getFieldName();
TQString itemClassName = cppfield->getTypeName();
TQString text;
@@ -92,11 +92,11 @@ void CPPHeaderCodeAccessorMethod::updateContent( )
void CPPHeaderCodeAccessorMethod::updateMethodDeclaration()
{
- CodeClassField * parentField = getParentClassField();
- ClassifierCodeDocument * doc = parentField->getParentDocument();
+ CodeClassField * tqparentField = getParentClassField();
+ ClassifierCodeDocument * doc = tqparentField->getParentDocument();
CodeGenPolicyExt *pe = UMLApp::app()->getPolicyExt();
CPPCodeGenerationPolicy * policy = dynamic_cast<CPPCodeGenerationPolicy*>(pe);
- CPPCodeClassField * cppfield = dynamic_cast<CPPCodeClassField*>(parentField);
+ CPPCodeClassField * cppfield = dynamic_cast<CPPCodeClassField*>(tqparentField);
bool isInlineMethod = policy->getAccessorsAreInline( );