From 351f6e4421669de50e04fc49ac0da84b945be85e Mon Sep 17 00:00:00 2001 From: Ingo Date: Fri, 22 May 2015 13:33:05 +0200 Subject: [PATCH] small correction to last patch to avoid a warning during compile, no Issue --- rtengine/safekeyfile.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rtengine/safekeyfile.h b/rtengine/safekeyfile.h index 0ebf232f0..8e3f3e235 100644 --- a/rtengine/safekeyfile.h +++ b/rtengine/safekeyfile.h @@ -63,9 +63,9 @@ class SafeKeyFile : public Glib::KeyFile double get_double(const Glib::ustring& group_name, const Glib::ustring& key) const { Glib::ustring temp = get_string( group_name, key); - if(temp.data() != "") { + if(!temp.empty()) { double tmpdbl; - if(sscanf(temp.data(), "%lf", &tmpdbl)) + if(sscanf(temp.c_str(), "%lf", &tmpdbl)) return tmpdbl; else return 0.0; @@ -87,9 +87,9 @@ class SafeKeyFile : public Glib::KeyFile if(n) { tempdouble.reserve(n); for (unsigned int i=0; i