Fix several compile issues (#261)
Fixed several code issues. Mostly pedantic compiler warnings. But also a sign issue exposed by newer compilers (#228, #260)
This commit is contained in:
@@ -36,8 +36,6 @@ namespace glabels
|
||||
const int wSwatch = 25;
|
||||
const int hSwatch = 25;
|
||||
|
||||
const int hoverBgOutlineWidthPixels = 1;
|
||||
|
||||
const int outlineWidthPixels = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -823,7 +823,8 @@ namespace glabels
|
||||
/*
|
||||
* Calculate new size
|
||||
*/
|
||||
double w, h;
|
||||
double w = 0.0;
|
||||
double h = 0.0;
|
||||
switch ( mResizeHandleLocation )
|
||||
{
|
||||
case model::Handle::NW:
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace glabels
|
||||
{
|
||||
model::Settings::setTemplatePickerMode( mode );
|
||||
|
||||
for ( unsigned int i = 0; i < count(); i++ )
|
||||
for ( int i = 0; i < count(); i++ )
|
||||
{
|
||||
if (auto* tItem = dynamic_cast<TemplatePickerItem *>(item(i)))
|
||||
{
|
||||
@@ -182,7 +182,7 @@ namespace glabels
|
||||
bool isoMask, bool usMask, bool otherMask,
|
||||
bool anyCategory, const QStringList& categoryIds )
|
||||
{
|
||||
for ( unsigned int i = 0; i < count(); i++ )
|
||||
for ( int i = 0; i < count(); i++ )
|
||||
{
|
||||
if (auto* tItem = dynamic_cast<TemplatePickerItem *>(item(i)))
|
||||
{
|
||||
@@ -232,7 +232,7 @@ namespace glabels
|
||||
///
|
||||
void TemplatePicker::applyFilter( const QStringList& names )
|
||||
{
|
||||
for ( unsigned int i = 0; i < count(); i++ )
|
||||
for ( int i = 0; i < count(); i++ )
|
||||
{
|
||||
if (auto *tItem = dynamic_cast<TemplatePickerItem *>(item(i)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user