Clean up a couple of build warnings

pull/1/head
Timothy Pearson 10 years ago
parent bb831be07c
commit 6213a065fe

@ -964,12 +964,8 @@ static bool readBoolEntry(TQtCConfig &cfg, const TQString &key, bool def)
static void readDoubleList(TQtCConfig &cfg, const char *key, double *list, int count)
{
#if ( (0x039999 >= 0x040000))
TQStringList strings(readStringEntry(cfg, key).split(',', TQString::SkipEmptyParts));
#else
TQStringList strings(TQStringList::split(',', readStringEntry(cfg, key)));
#endif
bool ok(count==strings.size());
bool ok(count==(int)strings.size());
if(ok)
{

@ -1137,15 +1137,17 @@ void QtCurveConfig::addGradStop()
double pos(stopPosition->value()/100.0),
val(stopValue->value()/100.0);
for(; it!=end; ++it)
if(equal(pos, (*it).pos))
if(equal(val, (*it).val))
for(; it!=end; ++it) {
if(equal(pos, (*it).pos)) {
if(equal(val, (*it).val)) {
return;
else
{
}
else {
(*cg).second.stops.erase(it);
break;
}
}
}
unsigned int b4=(*cg).second.stops.size();
(*cg).second.stops.insert(GradientStop(pos, val));

Loading…
Cancel
Save