Mercurial > vim
diff src/os_macosx.m @ 2310:3e4574a4b627 vim73
Fix a few compiler warnings.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Jul 2010 14:28:26 +0200 |
parents | 543ea69d037f |
children | 233eb4412f5d |
line wrap: on
line diff
--- a/src/os_macosx.m +++ b/src/os_macosx.m @@ -686,7 +686,7 @@ clip_mch_request_selection(VimClipboard n = [mstring replaceOccurrencesOfString:@"\x0d" withString:@"\x0a" options:0 range:range]; } - + /* Scan for newline character to decide whether the string should be * pasted line-wise or character-wise. */ @@ -734,7 +734,7 @@ clip_mch_set_selection(VimClipboard *cbd cbd->owned = TRUE; clip_get_selection(cbd); cbd->owned = FALSE; - + /* Get the text to put on the pasteboard. */ long_u llen = 0; char_u *str = 0; int motion_type = clip_convert_selection(&str, &llen, cbd); @@ -771,7 +771,7 @@ clip_mch_set_selection(VimClipboard *cbd [pb setPropertyList:plist forType:VimPboardType]; [pb setString:string forType:NSStringPboardType]; - + [string release]; }