diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-09-15 16:37:27 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-09-15 16:37:27 +0000 |
| commit | c13edab979886a7dc0a23e8bf8b5da77fb5676de (patch) | |
| tree | d0af3cb43043747680e49269441978694656e6f8 /src/helper-fns.h | |
| parent | avoid code duplication, i.e. use sp_item_snappoints in the object-snapper.cpp (diff) | |
| download | inkscape-c13edab979886a7dc0a23e8bf8b5da77fb5676de.tar.gz inkscape-c13edab979886a7dc0a23e8bf8b5da77fb5676de.zip | |
Refactoring SPColor to C++ and removing legacy CMYK implementation
(bzr r3753)
Diffstat (limited to 'src/helper-fns.h')
| -rw-r--r-- | src/helper-fns.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/helper-fns.h b/src/helper-fns.h index 4e51c9a16..b4976bad4 100644 --- a/src/helper-fns.h +++ b/src/helper-fns.h @@ -15,8 +15,7 @@ #include <sstream> -static double -helperfns_read_number(gchar const *value) { +inline double helperfns_read_number(gchar const *value) { if (!value) return 0; char *end; double ret = g_ascii_strtod(value, &end); @@ -29,7 +28,7 @@ helperfns_read_number(gchar const *value) { return ret; } -static bool helperfns_read_bool(gchar const *value, bool default_value){ +inline bool helperfns_read_bool(gchar const *value, bool default_value){ if (!value) return default_value; switch(value[0]){ case 't': @@ -42,7 +41,7 @@ static bool helperfns_read_bool(gchar const *value, bool default_value){ return default_value; } -static std::vector<gdouble> helperfns_read_vector(const gchar* value, int size){ +inline std::vector<gdouble> helperfns_read_vector(const gchar* value, int size){ std::vector<gdouble> v(size, (gdouble) 0); std::istringstream is(value); for(int i = 0; i < size && (is >> v[i]); i++); |
