Skip to content

Commit

Permalink
fix MSVC compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 17, 2019
1 parent 1995f9d commit 9c69c88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/App/PropertyLinks.cpp
Expand Up @@ -3892,7 +3892,8 @@ void PropertyXLinkSubList::setPyObject(PyObject *value)
s.reserve(s.size()+subs.size());
s.insert(s.end(),subs.begin(),subs.end());
}
}catch(Base::Exception &e){
}
catch(Base::Exception&){
throw Base::TypeError("Invalid type inside sequence. Must be type of (DocumentObject, (subname...))");
}
setValues(std::move(values));
Expand Down
3 changes: 2 additions & 1 deletion src/Gui/Command.cpp
Expand Up @@ -768,7 +768,8 @@ void Command::_copyVisual(const char *file, int line, const App::DocumentObject
_doCommand(file,line,Gui,
"%s.ViewObject.%s=getattr(%s.getLinkedObject(True).ViewObject,'%s',%s.ViewObject.%s)",
objCmd.c_str(),attr_to,getObjectCmd(from).c_str(),attr_from,objCmd.c_str(),attr_to);
}catch(Base::Exception &e) {
}
catch(Base::Exception& /*e*/) {
// e.ReportException();
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/Gui/CommandDoc.cpp
Expand Up @@ -1296,9 +1296,10 @@ void StdCmdRefresh::activated(int iMsg)
App::AutoTransaction trans("Recompute");
try {
doCommand(Doc,"App.activeDocument().recompute(None,True,True)");
} catch(Base::Exception &e) {
}
catch (Base::Exception& /*e*/) {
int ret = QMessageBox::warning(getMainWindow(), QObject::tr("Dependency error"),
QObject::tr("The document contains dependency cycles.\n"
qApp->translate("Std_Refresh", "The document contains dependency cycles.\n"
"Please check the Report View for more details.\n\n"
"Do you still want to proceed?"),
QMessageBox::Yes, QMessageBox::No);
Expand Down

0 comments on commit 9c69c88

Please sign in to comment.