fix -Wextra in Import
This commit is contained in:
parent
6cf82fbe62
commit
c1034fbe74
|
@ -97,7 +97,8 @@ void ImportOCAF::loadShapes()
|
||||||
loadShapes(pDoc->Main(), TopLoc_Location(), default_name, "", false);
|
loadShapes(pDoc->Main(), TopLoc_Location(), default_name, "", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImportOCAF::loadShapes(const TDF_Label& label, const TopLoc_Location& loc, const std::string& defaultname, const std::string& assembly, bool isRef)
|
void ImportOCAF::loadShapes(const TDF_Label& label, const TopLoc_Location& loc,
|
||||||
|
const std::string& defaultname, const std::string& /*assembly*/, bool isRef)
|
||||||
{
|
{
|
||||||
int hash = 0;
|
int hash = 0;
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
using namespace Import;
|
using namespace Import;
|
||||||
|
|
||||||
StepShape::StepShape(const char* fileName)
|
StepShape::StepShape()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace Import
|
||||||
class ImportExport StepShape
|
class ImportExport StepShape
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StepShape(const char* fileName="");
|
StepShape();
|
||||||
~StepShape();
|
~StepShape();
|
||||||
|
|
||||||
int read(const char* fileName);
|
int read(const char* fileName);
|
||||||
|
|
|
@ -55,6 +55,7 @@ FCCmdImportReadBREP::FCCmdImportReadBREP()
|
||||||
|
|
||||||
void FCCmdImportReadBREP::activated(int iMsg)
|
void FCCmdImportReadBREP::activated(int iMsg)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(iMsg);
|
||||||
openCommand("Read BREP");
|
openCommand("Read BREP");
|
||||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("BREP (*.brep *.rle)"));
|
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("BREP (*.brep *.rle)"));
|
||||||
if (fn.isEmpty()) {
|
if (fn.isEmpty()) {
|
||||||
|
@ -91,6 +92,7 @@ ImportStep::ImportStep()
|
||||||
|
|
||||||
void ImportStep::activated(int iMsg)
|
void ImportStep::activated(int iMsg)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(iMsg);
|
||||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("STEP (*.stp *.step)"));
|
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("STEP (*.stp *.step)"));
|
||||||
if (!fn.isEmpty()) {
|
if (!fn.isEmpty()) {
|
||||||
openCommand("Part ImportSTEP Create");
|
openCommand("Part ImportSTEP Create");
|
||||||
|
@ -129,6 +131,7 @@ ImportIges::ImportIges()
|
||||||
|
|
||||||
void ImportIges::activated(int iMsg)
|
void ImportIges::activated(int iMsg)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(iMsg);
|
||||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("IGES (*.igs *.iges)"));
|
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("IGES (*.igs *.iges)"));
|
||||||
if (!fn.isEmpty()) {
|
if (!fn.isEmpty()) {
|
||||||
openCommand("ImportIGES Create");
|
openCommand("ImportIGES Create");
|
||||||
|
@ -153,6 +156,3 @@ void CreateImportCommands(void)
|
||||||
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||||
rcCmdMgr.addCommand(new FCCmdImportReadBREP());
|
rcCmdMgr.addCommand(new FCCmdImportReadBREP());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user