From: dooglus Date: Wed, 19 Sep 2007 11:34:24 +0000 (+0000) Subject: Revision 678 included in color.h. This added a couple of megabytes to... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7f4c7141c21b2d140d1ea249a468b27d29831081;p=synfig.git Revision 678 included in color.h. This added a couple of megabytes to the synfig binary distribution (due to each of the modules having to contain lots of iostream code). Moved the include into color.cpp instead to prevent this growth. git-svn-id: http://svn.voria.com/code@719 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/color.cpp b/synfig-core/trunk/src/synfig/color.cpp index 3305eb4..576b212 100644 --- a/synfig-core/trunk/src/synfig/color.cpp +++ b/synfig-core/trunk/src/synfig/color.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #endif @@ -109,6 +110,14 @@ Color::set_hex(String& hex) } } +const String +Color::get_string(void)const +{ + std::ostringstream o; + o << std::fixed << std::setprecision(3) << "#" << get_hex() << " : " << std::setw(6) << a_; + return String(o.str().c_str()); +} + #if 0 Color& Color::rotate_uv(const Angle& theta)const diff --git a/synfig-core/trunk/src/synfig/color.h b/synfig-core/trunk/src/synfig/color.h index 447bd56..a5455c1 100644 --- a/synfig-core/trunk/src/synfig/color.h +++ b/synfig-core/trunk/src/synfig/color.h @@ -28,11 +28,6 @@ /* === H E A D E R S ======================================================= */ -#include -#include -#include -#include - //#include #include #include @@ -115,12 +110,7 @@ private: public: - inline const String get_string(void)const - { - std::ostringstream o; - o << std::fixed << std::setprecision(3) << "#" << get_hex() << " : " << std::setw(6) << a_; - return String(o.str().c_str()); - } + const String get_string(void)const; Color & operator+=(const Color &rhs)