1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
commit 2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc
Author: Timothy Pearson <[email protected]>
Date: 1326525051 -0600
Fix a number of crashes
diff --git a/kmymoney2/converter/mymoneyqifprofile.cpp b/kmymoney2/converter/mymoneyqifprofile.cpp
index 52ef770..880b1c2 100644
--- a/kmymoney2/converter/mymoneyqifprofile.cpp
+++ b/kmymoney2/converter/mymoneyqifprofile.cpp
@@ -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
diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp
index 9390429..a974e8f 100644
--- a/kmymoney2/converter/mymoneyqifreader.cpp
+++ b/kmymoney2/converter/mymoneyqifreader.cpp
@@ -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
diff --git a/kmymoney2/dialogs/kcategoryreassigndlg.cpp b/kmymoney2/dialogs/kcategoryreassigndlg.cpp
index 4de99f6..beb8e98 100644
--- a/kmymoney2/dialogs/kcategoryreassigndlg.cpp
+++ b/kmymoney2/dialogs/kcategoryreassigndlg.cpp
@@ -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.").tqarg(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();
diff --git a/kmymoney2/dialogs/knewloanwizard.cpp b/kmymoney2/dialogs/knewloanwizard.cpp
index 884807f..87baaf9 100644
--- a/kmymoney2/dialogs/knewloanwizard.cpp
+++ b/kmymoney2/dialogs/knewloanwizard.cpp
@@ -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();
}
diff --git a/kmymoney2/dialogs/kpayeereassigndlg.cpp b/kmymoney2/dialogs/kpayeereassigndlg.cpp
index 0c3c0cf..1db13f1 100644
--- a/kmymoney2/dialogs/kpayeereassigndlg.cpp
+++ b/kmymoney2/dialogs/kpayeereassigndlg.cpp
@@ -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();
diff --git a/kmymoney2/mymoney/mymoneyaccount.cpp b/kmymoney2/mymoney/mymoneyaccount.cpp
index 6ef1f9c..c83e834 100644
--- a/kmymoney2/mymoney/mymoneyaccount.cpp
+++ b/kmymoney2/mymoney/mymoneyaccount.cpp
@@ -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 */)
diff --git a/kmymoney2/mymoney/mymoneyfile.cpp b/kmymoney2/mymoney/mymoneyfile.cpp
index 4809b28..c59d577 100644
--- a/kmymoney2/mymoney/mymoneyfile.cpp
+++ b/kmymoney2/mymoney/mymoneyfile.cpp
@@ -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
diff --git a/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp b/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp
index 22fa1ac..cabf772 100644
--- a/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp
+++ b/kmymoney2/mymoney/mymoneykeyvaluecontainer.cpp
@@ -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)
diff --git a/kmymoney2/mymoney/mymoneyutils.cpp b/kmymoney2/mymoney/mymoneyutils.cpp
index 08ffff4..8012200 100644
--- a/kmymoney2/mymoney/mymoneyutils.cpp
+++ b/kmymoney2/mymoney/mymoneyutils.cpp
@@ -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)
diff --git a/kmymoney2/plugins/ofximport/dialogs/konlinebankingstatus.cpp b/kmymoney2/plugins/ofximport/dialogs/konlinebankingstatus.cpp
index 084d73c..ec2d4a0 100644
--- a/kmymoney2/plugins/ofximport/dialogs/konlinebankingstatus.cpp
+++ b/kmymoney2/plugins/ofximport/dialogs/konlinebankingstatus.cpp
@@ -98,14 +98,14 @@ const TQString& KOnlineBankingtqStatus::appId(void) const
{
if(m_appId)
return m_appId->appId();
- return TQString();
+ return TQString::null;
}
TQString KOnlineBankingtqStatus::headerVersion(void) const
{
if(m_headerVersion)
return m_headerVersion->headerVersion();
- return TQString();
+ return TQString::null;
}
#include "konlinebankingstatus.moc"
diff --git a/kmymoney2/plugins/ofximport/dialogs/mymoneyofxconnector.cpp b/kmymoney2/plugins/ofximport/dialogs/mymoneyofxconnector.cpp
index 36a05b5..7408a38 100644
--- a/kmymoney2/plugins/ofximport/dialogs/mymoneyofxconnector.cpp
+++ b/kmymoney2/plugins/ofximport/dialogs/mymoneyofxconnector.cpp
@@ -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):
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
|