Commit 1e486c3b authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot

Merge topic 'fix-warnings'

f852a997 vtkPointSetToMoleculeFilter: fix cppcheck warnings
171beeb8 TestXMLWriteRead: fix cppcheck warnings.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Cory Quammen's avatarCory Quammen <cory.quammen@kitware.com>
Merge-request: !4342
parents 90cd7ca4 f852a997
......@@ -27,9 +27,9 @@ vtkStandardNewMacro(vtkPointSetToMoleculeFilter);
//----------------------------------------------------------------------------
vtkPointSetToMoleculeFilter::vtkPointSetToMoleculeFilter()
: ConvertLinesIntoBonds(true)
{
this->SetNumberOfInputPorts(1);
this->ConvertLinesIntoBondsOn();
// by default process active point scalars
this->SetInputArrayToProcess(
......
......@@ -25,7 +25,7 @@
namespace
{
template <typename T>
int TestConvertType(std::string type, std::string fileName);
int TestConvertType(const std::string& type, const std::string& fileName);
}
int TestXMLWriteRead(int argc, char* argv[])
{
......@@ -50,7 +50,7 @@ int TestXMLWriteRead(int argc, char* argv[])
namespace
{
template <typename T>
int TestConvertType(std::string type, std::string fileName)
int TestConvertType(const std::string& type, const std::string& fileName)
{
std::cout << "Testing type " << type << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment