From ee99f0bb048e682fa4b7935dbe8fc5d379f0c4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 1 Jun 2021 14:03:05 +0200 Subject: [PATCH] Fixed cppcheck warning, variable shadowing --- src/OpenMesh/Core/IO/IOManager.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenMesh/Core/IO/IOManager.cc b/src/OpenMesh/Core/IO/IOManager.cc index 8b3a4193..bdc77859 100644 --- a/src/OpenMesh/Core/IO/IOManager.cc +++ b/src/OpenMesh/Core/IO/IOManager.cc @@ -241,13 +241,13 @@ find_writer(const std::string& _format) { using std::string; - string::size_type dot = _format.rfind('.'); + string::size_type dotpos = _format.rfind('.'); string ext; - if (dot == string::npos) + if (dotpos == string::npos) ext = _format; else - ext = _format.substr(dot+1,_format.length()-(dot+1)); + ext = _format.substr(dotpos+1,_format.length()-(dotpos+1)); std::set::const_iterator it = writer_modules_.begin(); std::set::const_iterator it_end = writer_modules_.end();