Commit 5271cf65 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Fix unused variables

parent 3fe722a2
......@@ -66,7 +66,7 @@ bool convert_to_double(const std::string &arg, double *val) {
// Try to convert first in the current locale
sscanf(arg.c_str(), "%lf%n", val, &nb_read);
if(nb_read == arg.size()) {
if((size_t)nb_read == arg.size()) {
return true; // It is the good format
}
else{ // We change the locale to test
......@@ -94,7 +94,7 @@ bool convert_to_double(const std::string &arg, double *val) {
// Reads the value in the new locale
sscanf(arg.c_str(), "%lf%n", val, &nb_read);
return nb_read == arg.size();
return (size_t)nb_read == arg.size();
}
}
......
......@@ -238,7 +238,6 @@ void Statistics_window::on_reload_button_clicked() {
}
void Statistics_window::on_export_button_clicked(){
int kind_of_diagram = _kind_of_diagram_box->currentIndex();
QString kind_of_state = _kind_of_state_box->currentText();
set_selected_nodes(kind_of_state.toStdString());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment