@@ -54,9 +54,7 @@ class ComputeOptions
5454 typedef ComputeOptions This;
5555
5656 ComputeOptions ()
57- : _formatter( tuttle::common::formatters::Formatter::get() )
58- , _color ( tuttle::common::Color::get() )
59- , _begin ( std::numeric_limits<int >::min() )
57+ : _begin ( std::numeric_limits<int >::min() )
6058 , _end ( std::numeric_limits<int >::max() )
6159 , _abort ( false )
6260 {
@@ -65,9 +63,7 @@ class ComputeOptions
6563
6664 explicit
6765 ComputeOptions ( const int frame )
68- : _formatter( tuttle::common::formatters::Formatter::get() )
69- , _color ( tuttle::common::Color::get() )
70- , _begin ( std::numeric_limits<int >::min() )
66+ : _begin ( std::numeric_limits<int >::min() )
7167 , _end ( std::numeric_limits<int >::max() )
7268 , _abort ( false )
7369 {
@@ -76,9 +72,7 @@ class ComputeOptions
7672 }
7773
7874 ComputeOptions ( const int begin, const int end, const int step = 1 )
79- : _formatter( tuttle::common::formatters::Formatter::get() )
80- , _color ( tuttle::common::Color::get() )
81- , _begin ( std::numeric_limits<int >::min() )
75+ : _begin ( std::numeric_limits<int >::min() )
8276 , _end ( std::numeric_limits<int >::max() )
8377 , _abort ( false )
8478 {
@@ -87,9 +81,7 @@ class ComputeOptions
8781 }
8882
8983 ComputeOptions ( const ComputeOptions& options )
90- : _formatter( tuttle::common::formatters::Formatter::get() )
91- , _color ( tuttle::common::Color::get() )
92- , _begin ( std::numeric_limits<int >::min() )
84+ : _begin ( std::numeric_limits<int >::min() )
9385 , _end ( std::numeric_limits<int >::max() )
9486 , _abort ( false )
9587 {
@@ -215,7 +207,7 @@ class ComputeOptions
215207 */
216208 This& setVerboseLevel ( const EVerboseLevel level )
217209 {
218- _formatter ->setLogLevel ( static_cast <boost::log::trivial::severity_level>( level ) );
210+ tuttle::common::formatters::Formatter::get () ->setLogLevel ( static_cast <boost::log::trivial::severity_level>( level ) );
219211 return *this ;
220212 }
221213
@@ -224,7 +216,9 @@ class ComputeOptions
224216 */
225217 This& setColorEnable ( const bool enable = true )
226218 {
227- enable ? _color->enable () : _color->disable ();
219+ enable ?
220+ tuttle::common::Color::get ()->enable () :
221+ tuttle::common::Color::get ()->disable ();
228222 return *this ;
229223 }
230224
@@ -265,8 +259,6 @@ class ComputeOptions
265259 std::list<TimeRange> _timeRanges;
266260
267261 OfxPointD _renderScale;
268- boost::shared_ptr<tuttle::common::formatters::Formatter> _formatter;
269- boost::shared_ptr<tuttle::common::Color> _color;
270262 // different to range
271263 int _begin;
272264 int _end;
0 commit comments