Adress warnings and errors in the testsuite

This commit is contained in:
Andreas Fabri 2024-11-15 15:27:17 +00:00
parent ce3fe4f04e
commit f65b7f744f
3 changed files with 6 additions and 5 deletions

View File

@ -154,8 +154,9 @@ MainWindow::MainWindow()
this->setupOptionsMenu();
this->addAboutDemo(":/cgal/help/about_Polygon_2.html");
this->addAboutCGAL();
// this->setupExportSVG(action_Export_SVG, graphicsView);
#if QT_SVG_LIB
this->setupExportSVG(action_Export_SVG, graphicsView);
#endif
this->addRecentFiles(this->menuFile, this->actionQuit);
connect(this, SIGNAL(openRecentFile(QString)),
this, SLOT(open(QString)));

View File

@ -90,7 +90,7 @@ private:
template <typename K>
GraphicsViewPolygonWithHolesInput<K>::GraphicsViewPolygonWithHolesInput(QObject *parent, QGraphicsScene* s)
: GraphicsViewInput(parent), scene_(s), polygon_input(false)
: GraphicsViewInput(parent), polygon_input(false), scene_(s)
{
pwhItem = new CGAL::Qt::PolygonWithHolesGraphicsItem<Polygon_with_holes>(&pwh);
pwhItem->setBrush(::Qt::yellow);
@ -151,7 +151,7 @@ GraphicsViewPolygonWithHolesInput<K>::processInput(CGAL::Object o)
template <typename K>
void
GraphicsViewPolygonWithHolesInput<K>::keyPressEvent ( QKeyEvent * event )
GraphicsViewPolygonWithHolesInput<K>::keyPressEvent ( QKeyEvent * /* event */ )
{
}

View File

@ -284,7 +284,7 @@ private:
reconstruct_ring(std::list<Point_2>& ring,
Face_handle face_adjacent_to_boundary,
int opposite_vertex,
const Fct& fct)
const Fct& CGAL_assertion_code(fct))
{
// Create ring
Face_handle current_face = face_adjacent_to_boundary;