Commit 149cbb3d authored by Mathieu Faverge's avatar Mathieu Faverge

Merge branch 'fix-sonar-qube-errors' into 'master'

Fix issues reported by SonarQube

See merge request !15
parents bf1cd97e a8375567
......@@ -286,7 +286,7 @@ void Session::get_palettes_name(const std::string &type, QStringList &list) {
Palette *Session::get_palette(const std::string &type, const std::string &palette_name) {
Palette *p, **where_from;
Palette *p = NULL, **where_from;
if( type == "palette" ) {
p = _palettes_state;
where_from = &_palettes_state;
......@@ -57,7 +57,7 @@
using namespace std;
bool convert_to_double(const std::string &arg, double *val) {
unsigned int nb_read;
int nb_read;
// Try to convert first in the current locale
sscanf(arg.c_str(), "%lf%n", val, &nb_read);
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