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); possibleDateFormats(list);
if(list.count() == 1) if(list.count() == 1)
return list.first(); return list.first();
return TQString(); return TQString::null;
} }
void MyMoneyQifProfile::possibleDateFormats(TQStringList& list) const void MyMoneyQifProfile::possibleDateFormats(TQStringList& list) const

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

@ -53,7 +53,7 @@ KCategoryReassignDlg::~KCategoryReassignDlg()
TQString KCategoryReassignDlg::show(const MyMoneyAccount& category) TQString KCategoryReassignDlg::show(const MyMoneyAccount& category)
{ {
if (category.id().isEmpty()) 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; AccountSet set;
set.addAccountGroup(MyMoneyAccount::Income); 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 there is no category for reassignment left, we bail out
if(list.isEmpty()) { 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>")); 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 // execute dialog and if aborted, return empty string
if (this->exec() == TQDialog::Rejected) if (this->exec() == TQDialog::Rejected)
return TQString(); return TQString::null;
// otherwise return index of selected payee // otherwise return index of selected payee
return m_category->selectedItem(); return m_category->selectedItem();

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

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

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

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

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

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

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

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

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

@ -106,7 +106,7 @@ bool KMyMoneyWizardPage::isComplete(void) const
const TQString& KMyMoneyWizardPage::helpContext(void) const const TQString& KMyMoneyWizardPage::helpContext(void) const
{ {
return TQString(); return TQString::null;
} }
KMyMoneyWizard::KMyMoneyWizard(TQWidget *parent, const char *name, bool modal, WFlags f) : 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 const TQDate& sortPostDate(void) const { return nullDate; }
virtual int sortSamePostDate(void) const = 0; virtual int sortSamePostDate(void) const = 0;
virtual const TQDate& sortEntryDate(void) const { return nullDate; } 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 MyMoneyMoney& sortValue(void) const { return nullValue; }
virtual const TQString& sortNumber(void) const { return TQString(); } virtual const TQString& sortNumber(void) const { return TQString::null; }
virtual const TQString& sortEntryOrder(void) const { return TQString(); } virtual const TQString& sortEntryOrder(void) const { return TQString::null; }
virtual CashFlowDirection sortType(void) const { return Deposit; } 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 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 * This method sets the row offset of the item in the register

Loading…
Cancel
Save