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:
Jaye Evins
2025-12-06 15:58:38 -05:00
committed by GitHub
parent 44a10fc796
commit b6cac2d208
10 changed files with 41 additions and 18 deletions
-2
View File
@@ -36,8 +36,6 @@ namespace glabels
const int wSwatch = 25;
const int hSwatch = 25;
const int hoverBgOutlineWidthPixels = 1;
const int outlineWidthPixels = 1;
}
+2 -1
View File
@@ -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:
+3 -3
View File
@@ -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)))
{