Fixed a handful of errors flagged by clang-tidy.

This commit is contained in:
Jim Evins
2017-03-21 23:21:35 -04:00
parent 622d81252a
commit 9f9ba345cf
4 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -889,7 +889,7 @@ namespace glabels
case Handle::SW: case Handle::SW:
x0 += x2 - mResizeObject->w().pt(); x0 += x2 - mResizeObject->w().pt();
break; break;
defaule: default:
break; break;
} }
} }
+2
View File
@@ -602,6 +602,8 @@ namespace glabels
return object; return object;
} }
} }
return 0;
} }
+1 -1
View File
@@ -50,7 +50,7 @@ namespace glabels
{ {
foreach (Template *tmplate, tmplates) foreach (Template *tmplate, tmplates)
{ {
TemplatePickerItem *item = new TemplatePickerItem( tmplate, this ); new TemplatePickerItem( tmplate, this );
} }
} }
+1
View File
@@ -256,6 +256,7 @@ namespace glabels
if ( tmplate == 0 ) if ( tmplate == 0 )
{ {
qWarning() << "Unable to parse template"; qWarning() << "Unable to parse template";
delete label;
return 0; return 0;
} }
label->setTmplate( tmplate ); label->setTmplate( tmplate );