summaryrefslogtreecommitdiffstats
path: root/kmymoney2/reports/reportaccount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/reports/reportaccount.cpp')
-rw-r--r--kmymoney2/reports/reportaccount.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/reports/reportaccount.cpp b/kmymoney2/reports/reportaccount.cpp
index d38727d..5f091e2 100644
--- a/kmymoney2/reports/reportaccount.cpp
+++ b/kmymoney2/reports/reportaccount.cpp
@@ -74,20 +74,20 @@ void ReportAccount::calculateAccountHierarchy( void )
MyMoneyFile* file = MyMoneyFile::instance();
TQString resultid = id();
- TQString tqparentid = tqparentAccountId();
+ TQString parentid = parentAccountId();
#ifdef DEBUG_HIDE_SENSITIVE
m_nameHierarchy.prepend(file->account(resultid).id());
#else
m_nameHierarchy.prepend(file->account(resultid).name());
#endif
- while (!file->isStandardAccount(tqparentid))
+ while (!file->isStandardAccount(parentid))
{
// take on the identity of our tqparent
- resultid = tqparentid;
+ resultid = parentid;
// and try again
- tqparentid = file->account(resultid).tqparentAccountId();
+ parentid = file->account(resultid).parentAccountId();
#ifdef DEBUG_HIDE_SENSITIVE
m_nameHierarchy.prepend(file->account(resultid).id());
#else
@@ -307,7 +307,7 @@ unsigned ReportAccount::hierarchyDepth( void ) const
ReportAccount ReportAccount::tqparent( void ) const
{
- return ReportAccount( tqparentAccountId() );
+ return ReportAccount( parentAccountId() );
}
ReportAccount ReportAccount::topParent( void ) const
@@ -316,15 +316,15 @@ ReportAccount ReportAccount::topParent( void ) const
MyMoneyFile* file = MyMoneyFile::instance();
TQString resultid = id();
- TQString tqparentid = tqparentAccountId();
+ TQString parentid = parentAccountId();
- while (!file->isStandardAccount(tqparentid))
+ while (!file->isStandardAccount(parentid))
{
// take on the identity of our tqparent
- resultid = tqparentid;
+ resultid = parentid;
// and try again
- tqparentid = file->account(resultid).tqparentAccountId();
+ parentid = file->account(resultid).parentAccountId();
}
return ReportAccount( resultid );