Commit 58dd7d92 authored by Matthias Möller's avatar Matthias Möller
Browse files

fix some cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16859 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0b7e4e21
......@@ -239,7 +239,7 @@ remesh(unsigned int _iters,
prepare();
remeshh(_iters, _area_iters, _use_projection);
}
catch (std::bad_alloc)
catch (std::bad_alloc&)
{
mesh_.clear();
omerr() << "Remeshig: Out of memory\n";
......
......@@ -1836,7 +1836,7 @@ int FileOBJPlugin::loadObject(QString _filename) {
// add last group
curveGroups.push_back(curveIds);
std::vector< std::vector<int> >::iterator it = curveGroups.begin();
for (it; it != curveGroups.end(); ++it) {
for (; it != curveGroups.end(); ++it) {
// only group if we have more than one curve
if (it->size() > 2) {
if (groupNames[it->back()].size() == 0)
......@@ -1851,7 +1851,7 @@ int FileOBJPlugin::loadObject(QString _filename) {
// add last group
surfaceGroups.push_back(surfaceIds);
std::vector< std::vector<int> >::iterator it2 = surfaceGroups.begin();
for (it2; it2 != surfaceGroups.end(); ++it2) {
for (; it2 != surfaceGroups.end(); ++it2) {
// only group if we have more than one surface
if (it2->size() > 2) {
if (groupNames[it2->back()].size() == 0)
......
Supports Markdown
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