diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-03-25 16:19:46 +0000 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-03-25 16:19:46 +0000 |
commit | 1b83e14b1f5640881deeb03c1d11df5197746b64 (patch) | |
tree | 15459d01d836db14064f120fdd7a3ab38ef2e421 /tikzit/src/gtk/Menu.m | |
parent | c0137b33c535eb04f5e7d5628e9a225e226c5b34 (diff) |
Fix issues found by the clang static analyzer
Diffstat (limited to 'tikzit/src/gtk/Menu.m')
-rw-r--r-- | tikzit/src/gtk/Menu.m | 7 |
1 files changed, 3 insertions, 4 deletions
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> tool) { - (id) init { [self release]; - self = nil; return nil; } |