Merge branch 'cppcheck_fix' into 'master'
Cppcheck fix See merge request OpenMesh/OpenMesh!306
This commit is contained in:
@@ -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<BaseWriter*>::const_iterator it = writer_modules_.begin();
|
||||
std::set<BaseWriter*>::const_iterator it_end = writer_modules_.end();
|
||||
|
||||
@@ -327,7 +327,7 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
|
||||
{
|
||||
|
||||
if (useMatrial && _opt.check(Options::FaceColor) ){
|
||||
size_t material = std::numeric_limits<std::size_t>::max();
|
||||
size_t material;
|
||||
|
||||
//color with alpha
|
||||
if ( _opt.color_has_alpha() ){
|
||||
|
||||
Reference in New Issue
Block a user