changeset 28345:c5f12165d294 stable

move stray base_graphics_toolkit function to graphics-toolkit.cc * graphics-toolkit.cc (base_graphics_toolkit::finalize): Move here from graphics.cc. This function should have been moved with other functions in changeset 41795b504a8b.
author John W. Eaton <jwe@octave.org>
date Thu, 21 May 2020 09:14:27 -0400
parents 8b71a6cec9bf
children d0555f415774
files libinterp/corefcn/graphics-toolkit.cc libinterp/corefcn/graphics.cc
diffstat 2 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics-toolkit.cc	Wed May 06 10:05:36 2020 +0200
+++ b/libinterp/corefcn/graphics-toolkit.cc	Thu May 21 09:14:27 2020 -0400
@@ -54,4 +54,15 @@
 
     return initialize (go);
   }
+
+  void
+  base_graphics_toolkit::finalize (const graphics_handle& h)
+  {
+    gh_manager& gh_mgr
+      = octave::__get_gh_manager__ ("base_graphics_toolkit::finalize");
+
+    graphics_object go = gh_mgr.get_object (h);
+
+    finalize (go);
+  }
 }
--- a/libinterp/corefcn/graphics.cc	Wed May 06 10:05:36 2020 +0200
+++ b/libinterp/corefcn/graphics.cc	Thu May 21 09:14:27 2020 -0400
@@ -3200,17 +3200,6 @@
 
 // ---------------------------------------------------------------------
 
-void
-base_graphics_toolkit::finalize (const graphics_handle& h)
-{
-  gh_manager& gh_mgr
-    = octave::__get_gh_manager__ ("base_graphics_toolkit::finalize");
-
-  graphics_object go = gh_mgr.get_object (h);
-
-  finalize (go);
-}
-
 static int
 toggle_warn (std::string id, bool on, int state = -1)
 {