summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-14 01:10:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-14 01:10:51 -0600
commit2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc (patch)
tree673921e3e9310f55904ccd88962f74c401686758 /kmymoney2/widgets
parent7b2485b7a44922b7a5ceec8159d22cd579f5d416 (diff)
downloadkmymoney-2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc.tar.gz
kmymoney-2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc.zip
Fix a number of crashes
Diffstat (limited to 'kmymoney2/widgets')
-rw-r--r--kmymoney2/widgets/kmymoneycombo.cpp2
-rw-r--r--kmymoney2/widgets/kmymoneywizard.cpp2
-rw-r--r--kmymoney2/widgets/registeritem.h10
3 files changed, 7 insertions, 7 deletions
diff --git a/kmymoney2/widgets/kmymoneycombo.cpp b/kmymoney2/widgets/kmymoneycombo.cpp
index f8b6489..761b537 100644
--- a/kmymoney2/widgets/kmymoneycombo.cpp
+++ b/kmymoney2/widgets/kmymoneycombo.cpp
@@ -588,7 +588,7 @@ public:
return it.key();
}
}
- return TQString();
+ return TQString::null;
}
};
diff --git a/kmymoney2/widgets/kmymoneywizard.cpp b/kmymoney2/widgets/kmymoneywizard.cpp
index ff00c78..f446acf 100644
--- a/kmymoney2/widgets/kmymoneywizard.cpp
+++ b/kmymoney2/widgets/kmymoneywizard.cpp
@@ -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) :
diff --git a/kmymoney2/widgets/registeritem.h b/kmymoney2/widgets/registeritem.h
index e9c21d3..83b9a04 100644
--- a/kmymoney2/widgets/registeritem.h
+++ b/kmymoney2/widgets/registeritem.h
@@ -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