FEM: fix some linter warnings

This commit is contained in:
wmayer
2024-03-22 08:19:43 +01:00
committed by wwmayer
parent cbdef026f5
commit 3ad453d5e3
2 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ std::string vtkWriterExtension(const vtkSmartPointer<vtkDataObject>& dataObject)
} // namespace
void FemPostObject::writeVTK(const char* filename)
void FemPostObject::writeVTK(const char* filename) const
{
const vtkSmartPointer<vtkDataObject>& data = Data.getValue();
@@ -127,7 +127,7 @@ void FemPostObject::writeVTK(const char* filename)
throw Base::TypeError("Unsupported data type");
}
std::string::size_type pos = name.find_last_of(".");
std::string::size_type pos = name.find_last_of('.');
if (pos != std::string::npos) {
name = name.substr(0, pos + 1).append(extension);
}

View File

@@ -48,7 +48,7 @@ public:
PyObject* getPyObject() override;
vtkBoundingBox getBoundingBox();
void writeVTK(const char* filename);
void writeVTK(const char* filename) const;
};
} // namespace Fem