From b7d164a2b66c8ce4c416798dc586c24c89473096 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 1 Dec 2000 18:32:32 +0000 Subject: [PATCH] Fixed the numbering in ContactView. The old sprintf is trustfull. --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.39.2