+ fix various warnings

This commit is contained in:
wmayer
2015-08-30 11:48:26 +02:00
parent cac09437c8
commit 32bcbda232
7 changed files with 64 additions and 73 deletions

View File

@@ -187,7 +187,8 @@ bool Cell::getStringContent(std::string & s) const
s = static_cast<StringExpression*>(expression)->getText();
char * end;
errno = 0;
strtod(s.c_str(), &end);
double d = strtod(s.c_str(), &end);
(void)d; // fix gcc warning
if (!*end && errno == 0)
s = "'" + s;
}

View File

@@ -897,7 +897,7 @@ void ColorPickerPopup::regenerateGrid()
*/
void ColorPickerPopup::getColorFromDialog()
{
bool ok;
//bool ok;
//QRgb rgb = QColorDialog::getRgba(lastSel.rgba(), &ok, parentWidget());
QColor col = QColorDialog::getColor(lastSel,parentWidget(),0,QColorDialog::ShowAlphaChannel);
if (!col.isValid())