Clang: fix clang-diagnostic-error
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#define GUI_SYNTAXHIGHLIGHTER_H
|
||||
|
||||
#include <QSyntaxHighlighter>
|
||||
#include <FCGlobal.h>
|
||||
|
||||
namespace Gui {
|
||||
class SyntaxHighlighterP;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user