try to get rid of warning

This commit is contained in:
Andreas Fabri 2010-08-23 08:22:27 +00:00
parent 9805a957d1
commit 7489eee639
1 changed files with 4 additions and 3 deletions

View File

@ -58,6 +58,7 @@ int main(int, char*)
#include <qtimer.h> #include <qtimer.h>
#include <qtoolbar.h> #include <qtoolbar.h>
#include <qtoolbutton.h> #include <qtoolbutton.h>
#include <qstring>
const QString my_title_string("Nef_2 Demo with" const QString my_title_string("Nef_2 Demo with"
" CGAL Qt_widget"); " CGAL Qt_widget");
@ -358,9 +359,9 @@ public slots:
Nef_polyhedron Nt(l_of_p.begin(), l_of_p.end(), Nef_polyhedron Nt(l_of_p.begin(), l_of_p.end(),
Nef_polyhedron::INCLUDED); Nef_polyhedron::INCLUDED);
Nef_visible = Nt; Nef_visible = Nt;
char tnr[10]; QString tnr;
sprintf(tnr, "%d", poly.size()); tnr.setNum(poly.size());
strcat(tnr, "gon"); tnr.append("gon");
insert_in_list(Nt, tnr); insert_in_list(Nt, tnr);
list1->setSelected(list1->count()-1, true); list1->setSelected(list1->count()-1, true);
widget->set_window(poly.bbox().xmin(), poly.bbox().xmax(), widget->set_window(poly.bbox().xmin(), poly.bbox().xmax(),