From: Michael Andreen Date: Fri, 1 Dec 2000 18:32:32 +0000 (+0000) Subject: Fixed the numbering in ContactView. The old sprintf is trustfull. X-Git-Tag: a~16 X-Git-Url: https://ruin.nu/git/?p=adress.git;a=commitdiff_plain;h=b7d164a2b66c8ce4c416798dc586c24c89473096 Fixed the numbering in ContactView. The old sprintf is trustfull. --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 0bafd08..aff0dea 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -91,11 +91,11 @@ void MainWindow::updateView() CContact* contact = CContact::getFirst(); int i = 1; - QString s; + char s[100]; while (contact != '\0') { - s.sprintf("%1").arg(i); + sprintf(s,"%i",i);//.arg(i); (void) new QListViewItem(ContactView, s, contact->lastname(), contact->firstname(), contact->adress(), contact->phoneNumber()); contact = contact->getNext(); i++;