+ fix various warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user