Mercurial > octave-nkf
diff libinterp/corefcn/graphics.cc @ 17544:fc31cd1bd503
extract handle object to a separate file
* oct-handle.h: New file.
* libinterp/corefcn/module.mk (COREFCN_INC): Add it to the list.
* graphics.in.h, graphics.cc (graphics_handle class): move to
oct-handle.h and rename octave_handle.
(graphics_handle): Now a typedef for octave_handle.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 02 Oct 2013 19:52:39 -0400 |
parents | 55680de6a897 |
children | 234731d524c2 |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc Thu Oct 03 19:09:00 2013 +0200 +++ b/libinterp/corefcn/graphics.cc Wed Oct 02 19:52:39 2013 -0400 @@ -1927,22 +1927,6 @@ return m; } -graphics_handle::graphics_handle (const octave_value& a) - : val (octave_NaN) -{ - if (a.is_empty ()) - /* do nothing */; - else - { - double tval = a.double_value (); - - if (! error_state) - val = tval; - else - error ("invalid graphics handle"); - } -} - // Set properties given as a cs-list of name, value pairs. void