From 8cfa359f1ee073ce0a180b805a67e4f84ef09a76 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 10 Jan 2008 14:18:04 +0000 Subject: [PATCH] Define ValueBase::set() for type 'char *' as well as for 'const char *'. git-svn-id: http://svn.voria.com/code@1310 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/value.cpp | 6 ++++++ synfig-core/trunk/src/synfig/value.h | 1 + 2 files changed, 7 insertions(+) diff --git a/synfig-core/trunk/src/synfig/value.cpp b/synfig-core/trunk/src/synfig/value.cpp index 7be5b49..6afa515 100644 --- a/synfig-core/trunk/src/synfig/value.cpp +++ b/synfig-core/trunk/src/synfig/value.cpp @@ -145,6 +145,12 @@ ValueBase::set(const char* x) _set(String(x)); } +void +ValueBase::set(char* x) +{ + _set(String(x)); +} + bool ValueBase::is_valid()const { diff --git a/synfig-core/trunk/src/synfig/value.h b/synfig-core/trunk/src/synfig/value.h index db2cbf3..3c41949 100644 --- a/synfig-core/trunk/src/synfig/value.h +++ b/synfig-core/trunk/src/synfig/value.h @@ -260,6 +260,7 @@ public: void set(const float &x) { _set(Real(x)); } void set(const list_type &x); void set(const char* x); + void set(char* x); void set(Canvas*x); void set(etl::loose_handle x); void set(etl::handle x); -- 2.7.4