Fix a number of crashes

r14.0.x
Timothy Pearson 13 years ago
parent 7b2485b7a4
commit 2a54aa58cf

@ -769,7 +769,7 @@ TQString MyMoneyQifProfile::inputDateFormat(void) const
possibleDateFormats(list);
if(list.count() == 1)
return list.first();
return TQString();
return TQString::null;
}
void MyMoneyQifProfile::possibleDateFormats(TQStringList& list) const

@ -714,7 +714,7 @@ const TQString MyMoneyQifReader::extractLine(const TQChar id, int cnt)
}
}
m_extractedLine = -1;
return TQString();
return TQString::null;
}
void MyMoneyQifReader::extractSplits(TQValueList<qSplit>& listqSplits) const

@ -53,7 +53,7 @@ KCategoryReassignDlg::~KCategoryReassignDlg()
TQString KCategoryReassignDlg::show(const MyMoneyAccount& category)
{
if (category.id().isEmpty())
return TQString(); // no payee available? nothing can be selected...
return TQString::null; // no payee available? nothing can be selected...
AccountSet set;
set.addAccountGroup(MyMoneyAccount::Income);
@ -79,12 +79,12 @@ TQString KCategoryReassignDlg::show(const MyMoneyAccount& category)
// if there is no category for reassignment left, we bail out
if(list.isEmpty()) {
KMessageBox::sorry(this, TQString("<qt>")+i18n("At least one transaction/schedule still references the category <b>%1</b>. However, at least one category with the same currency must exist so that the transactions/schedules can be reassigned.").arg(category.name())+TQString("</qt>"));
return TQString();
return TQString::null;
}
// execute dialog and if aborted, return empty string
if (this->exec() == TQDialog::Rejected)
return TQString();
return TQString::null;
// otherwise return index of selected payee
return m_category->selectedItem();

@ -1072,7 +1072,7 @@ int KNewLoanWizard::term(void) const
TQString KNewLoanWizard::initialPaymentAccount(void) const
{
if(m_dontCreatePayoutCheckBox->isChecked()) {
return TQString();
return TQString::null;
}
return m_assetAccountEdit->selectedItems().first();
}

@ -53,13 +53,13 @@ KPayeeReassignDlg::~KPayeeReassignDlg()
TQString KPayeeReassignDlg::show(const TQValueList<MyMoneyPayee>& payeeslist)
{
if (payeeslist.isEmpty())
return TQString(); // no payee available? nothing can be selected...
return TQString::null; // no payee available? nothing can be selected...
payeeCombo->loadPayees(payeeslist);
// execute dialog and if aborted, return empty string
if (this->exec() == TQDialog::Rejected)
return TQString();
return TQString::null;
// otherwise return index of selected payee
return payeeCombo->selectedItem();

@ -450,7 +450,7 @@ void MyMoneyAccountLoan::setPayee(const TQString& payee)
const TQString MyMoneyAccountLoan::interestAccountId(void) const
{
return TQString();
return TQString::null;
}
void MyMoneyAccountLoan::setInterestAccountId(const TQString& /* id */)

@ -1230,7 +1230,7 @@ TQString MyMoneyFile::locateSubAccount(const MyMoneyAccount& base, const TQStrin
return locateSubAccount(nextBase, remainder);
}
}
return TQString();
return TQString::null;
}
TQString MyMoneyFile::value(const TQString& key) const

@ -55,7 +55,7 @@ const TQString& MyMoneyKeyValueContainer::value(const TQString& key) const
it = m_kvp.find(key);
if(it != m_kvp.end())
return (*it);
return TQString();
return TQString::null;
}
void MyMoneyKeyValueContainer::setValue(const TQString& key, const TQString& value)

@ -305,7 +305,7 @@ TQString dateToString(const TQDate& date)
if(!date.isNull() && date.isValid())
return date.toString(Qt::ISODate);
return TQString();
return TQString::null;
}
TQDate stringToDate(const TQString& str)
@ -323,7 +323,7 @@ TQString TQStringEmpty(const TQString& val)
if(!val.isEmpty())
return TQString(val);
return TQString();
return TQString::null;
}
unsigned long extractId(const TQString& txt)

@ -98,14 +98,14 @@ const TQString& KOnlineBankingStatus::appId(void) const
{
if(m_appId)
return m_appId->appId();
return TQString();
return TQString::null;
}
TQString KOnlineBankingStatus::headerVersion(void) const
{
if(m_headerVersion)
return m_headerVersion->headerVersion();
return TQString();
return TQString::null;
}
#include "konlinebankingstatus.moc"

@ -125,7 +125,7 @@ const TQString& OfxAppVersion::appId(void) const
TQString app = m_combo->currentText();
if(m_appMap[app] != defaultAppId)
return m_appMap[app];
return TQString();
return TQString::null;
}
MyMoneyOfxConnector::MyMoneyOfxConnector(const MyMoneyAccount& _account):

@ -588,7 +588,7 @@ public:
return it.key();
}
}
return TQString();
return TQString::null;
}
};

@ -106,7 +106,7 @@ bool KMyMoneyWizardPage::isComplete(void) const
const TQString& KMyMoneyWizardPage::helpContext(void) const
{
return TQString();
return TQString::null;
}
KMyMoneyWizard::KMyMoneyWizard(TQWidget *parent, const char *name, bool modal, WFlags f) :

@ -88,14 +88,14 @@ public:
virtual const TQDate& sortPostDate(void) const { return nullDate; }
virtual int sortSamePostDate(void) const = 0;
virtual const TQDate& sortEntryDate(void) const { return nullDate; }
virtual const TQString& sortPayee(void) const { return TQString(); }
virtual const TQString& sortPayee(void) const { return TQString::null; }
virtual const MyMoneyMoney& sortValue(void) const { return nullValue; }
virtual const TQString& sortNumber(void) const { return TQString(); }
virtual const TQString& sortEntryOrder(void) const { return TQString(); }
virtual const TQString& sortNumber(void) const { return TQString::null; }
virtual const TQString& sortEntryOrder(void) const { return TQString::null; }
virtual CashFlowDirection sortType(void) const { return Deposit; }
virtual const TQString& sortCategory(void) const { return TQString(); }
virtual const TQString& sortCategory(void) const { return TQString::null; }
virtual MyMoneySplit::reconcileFlagE sortReconcileState(void) const { return MyMoneySplit::MaxReconcileState; }
virtual const TQString& sortSecurity(void) const { return TQString(); }
virtual const TQString& sortSecurity(void) const { return TQString::null; }
/**
* This method sets the row offset of the item in the register

Loading…
Cancel
Save