From 2d0670104bc677be9875840a8d1a32753d1c1c41 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 11 Dec 2014 13:28:23 +0000 Subject: Removed one use of dynamic_cast. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 580310f1b..690283a73 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4123,7 +4123,7 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset) } fl_gc = NULL; Fl::check(); - BOOL to_quartz = dynamic_cast(this->driver()) != NULL; + BOOL to_quartz = (this->driver()->class_name() == Fl_Quartz_Graphics_Driver::class_id); // capture the window title bar with no title CGImageRef img = NULL; unsigned char *bitmap = NULL; -- cgit v1.2.3