Let Settings accept a const char* directly
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 13 Aug 2011 05:33:43 +0000 (07:33 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 13 Aug 2011 05:33:43 +0000 (07:33 +0200)
src/utility.h

index df151fd87308f89f9a24103ef639ebbd0ecdcff0..5950d7dfdcb072fa556424db865e8effd5c7b71e 100644 (file)
@@ -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);