From 1b83e14b1f5640881deeb03c1d11df5197746b64 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Mon, 25 Mar 2013 16:19:46 +0000 Subject: Fix issues found by the clang static analyzer --- tikzit/src/gtk/Menu.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tikzit/src/gtk/Menu.m') diff --git a/tikzit/src/gtk/Menu.m b/tikzit/src/gtk/Menu.m index 83bb2b3..677b48f 100644 --- a/tikzit/src/gtk/Menu.m +++ b/tikzit/src/gtk/Menu.m @@ -234,19 +234,19 @@ static void redo_cb (GtkAction *action, Window *window) { static void cut_cb (GtkAction *action, Window *window) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - [window cut]; + [window selectionCutToClipboard]; [pool drain]; } static void copy_cb (GtkAction *action, Window *window) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - [window copy]; + [window selectionCopyToClipboard]; [pool drain]; } static void paste_cb (GtkAction *action, Window *window) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - [window paste]; + [window pasteFromClipboard]; [pool drain]; } @@ -574,7 +574,6 @@ static void tool_cb (GtkAction *action, id tool) { - (id) init { [self release]; - self = nil; return nil; } -- cgit v1.2.3