Skip to content
Snippets Groups Projects
Commit 3d54b2d8 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Use bool literals.

clang-tidy modernize-use-bool-literals check.
parent 00496a50
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ void VtkVisPipelineView::contextMenuEvent( QContextMenuEvent* event )
int objectType = item->algorithm()->GetOutputDataObject(0)->GetDataObjectType();
VtkAlgorithmProperties* vtkProps = item->getVtkProperties();
bool isSourceItem =
(this->selectionModel()->currentIndex().parent().isValid()) ? 0 : 1;
!(this->selectionModel()->currentIndex().parent().isValid());
QMenu menu;
QAction* addFilterAction = menu.addAction("Add filter...");
......
......@@ -364,13 +364,13 @@ bool XmlGmlInterface::write()
else
{
ERR("XmlGmlInterface::write(): Point vector is empty, abort writing geometry.");
return 0;
return false;
}
}
else
{
ERR("XmlGmlInterface::write(): No point vector found, abort writing geometry.");
return 0;
return false;
}
// POLYLINES
......
......@@ -200,7 +200,7 @@ bool XmlStnInterface::write()
if (this->_exportName.empty())
{
ERR("XmlStnInterface::write(): No station list specified.");
return 0;
return false;
}
_out << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; // xml definition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment