summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-04-23 13:44:25 (UTC)
committer mickeyl <mickeyl>2004-04-23 13:44:25 (UTC)
commit8e32516bbda3fda10314f2afe4ee00eb9a49c013 (patch) (side-by-side diff)
tree598226dff8f623159b7bec675ae95c463bb711a5
parent25f3f2fe15578fd4deb04a951e3e23927977e032 (diff)
downloadopie-8e32516bbda3fda10314f2afe4ee00eb9a49c013.zip
opie-8e32516bbda3fda10314f2afe4ee00eb9a49c013.tar.gz
opie-8e32516bbda3fda10314f2afe4ee00eb9a49c013.tar.bz2
gcc3.4 fixlet
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/listedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/checkbook/listedit.cpp b/noncore/apps/checkbook/listedit.cpp
index 5026c9d..2612488 100644
--- a/noncore/apps/checkbook/listedit.cpp
+++ b/noncore/apps/checkbook/listedit.cpp
@@ -163,33 +163,33 @@ class ColList : public QList<QString>
protected:
int compareItems(QCollection::Item, QCollection::Item);
};
int ColList::compareItems(QCollection::Item i1, QCollection::Item i2) {
return( ((QString *)i1)->compare(*(QString *)i2) );
}
void ListEdit::fixTypes(int iColumn)
{
// get column def
ColumnDef *pDef=this->at(iColumn);
// create map of entries
if( !_typeTable->childCount() ) return;
- ColMap **colMap=new (ColMap *)[_typeTable->childCount()];
+ ColMap **colMap=new ColMap *[_typeTable->childCount()];
QListViewItem *cur=_typeTable->firstChild();
ColList lst;
for(int i=0; i<_typeTable->childCount(); i++) {
colMap[i]=new ColMap(cur->text(iColumn), cur);
lst.append( &(colMap[i]->getValue()) );
cur=cur->nextSibling();
}
// fix empty entries
int i=0;
for(QString *ptr=lst.first(); ptr; ptr=lst.next()) {
*ptr=ptr->stripWhiteSpace();
if( ptr->isEmpty() ) {
i++;
if( i==1 ) *ptr=pDef->getNewValue();
else ptr->sprintf("%s %d", (const char *)pDef->getNewValue(), i);