From 385904d75ae35484b76f48992e9c99840539aec3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 13 Aug 2011 07:33:43 +0200 Subject: [PATCH] Let Settings accept a const char* directly --- src/utility.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utility.h b/src/utility.h index df151fd8..5950d7df 100644 --- a/src/utility.h +++ b/src/utility.h @@ -1264,6 +1264,14 @@ public: m_settings[name] = value; } + void set(std::string name, const char *value) + { + JMutexAutoLock lock(m_mutex); + + m_settings[name] = value; + } + + void setDefault(std::string name, std::string value) { JMutexAutoLock lock(m_mutex); -- 2.30.2