Skip to content

Commit

Permalink
Adress warnings and errors in the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Nov 15, 2024
1 parent ce3fe4f commit f65b7f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions GraphicsView/demo/Polygon_repair/Boolean_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ typedef CGAL::Polygon_with_holes_2<K> Polygon_with_holes;

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);
Expand Down Expand Up @@ -151,7 +151,7 @@ GraphicsViewPolygonWithHolesInput<K>::processInput(CGAL::Object o)

template <typename K>
void
GraphicsViewPolygonWithHolesInput<K>::keyPressEvent ( QKeyEvent * event )
GraphicsViewPolygonWithHolesInput<K>::keyPressEvent ( QKeyEvent * /* event */ )
{
}

Expand Down
2 changes: 1 addition & 1 deletion Polygon_repair/include/CGAL/Polygon_repair/Boolean.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ sets the polygons as input of the %Boolean operation.
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;
Expand Down

0 comments on commit f65b7f7

Please sign in to comment.