Clang: fix clang-diagnostic-error

This commit is contained in:
wmayer
2022-08-24 17:02:17 +02:00
parent 180edfa3cc
commit ced0f46ef5
3 changed files with 11 additions and 3 deletions

View File

@@ -25,6 +25,7 @@
#define GUI_SYNTAXHIGHLIGHTER_H
#include <QSyntaxHighlighter>
#include <FCGlobal.h>
namespace Gui {
class SyntaxHighlighterP;

View File

@@ -2015,10 +2015,13 @@ TopoDS_Shape TopoShape::makePipeShell(const TopTools_ListOfShape& profiles,
mkPipeShell.Add(TopoDS_Shape(it.Value()));
}
if (!mkPipeShell.IsReady()) Standard_Failure::Raise("shape is not ready to build");
else mkPipeShell.Build();
if (!mkPipeShell.IsReady())
throw Standard_Failure("shape is not ready to build");
if (make_solid) mkPipeShell.MakeSolid();
mkPipeShell.Build();
if (make_solid)
mkPipeShell.MakeSolid();
return mkPipeShell.Shape();
}

View File

@@ -23,8 +23,12 @@
#ifndef PARTGUI_SECTIONCUTTING_H
#define PARTGUI_SECTIONCUTTING_H
#include <Inventor/SbBox3f.h>
#include <QDialog>
#include <App/DocumentObserver.h>
class QDoubleSpinBox;
class QSlider;
namespace PartGui {