[Gui] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-15 03:47:55 +02:00
parent 8e253cb4c8
commit c23a30b916
13 changed files with 22 additions and 22 deletions

View File

@@ -1356,7 +1356,7 @@ unsigned int Document::getMemSize (void) const
void Document::Save (Base::Writer &writer) const
{
// It's only possible to add extra information if force of XML is disabled
if (writer.isForceXML() == false) {
if (!writer.isForceXML()) {
writer.addFile("GuiDocument.xml", this);
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Document");
@@ -1909,7 +1909,7 @@ void Document::detachView(Gui::BaseView* pcView, bool bPassiv)
}
// is already closing the document, and is not linked by other documents
if (d->_isClosing == false &&
if (!d->_isClosing &&
App::PropertyXLink::getDocumentInList(getDocument()).empty())
{
d->_pcAppWnd->onLastWindowClosed(this);