• Sylvain Defresne's avatar
    Convert block syntax to the most popular option · b9322123
    Sylvain Defresne authored
    There are two syntaxes to declare an Objective-C block taking
    no arguments and returning no value (so of type void(^)()):
    1. ^{ ... } or 2. ^() { ... }.
    
    The syntax 1. appears to be the most popular in the codebase
    with at the time of writing 11643 references while 2. only
    had 58.
    
    Conversion was automated with the following command:
    
        sed -i '' -e 's/\^ *() *{/^{/' $(git grep -l '\^ *() *{')
    
    Bug: none
    Change-Id: I2c799e1931c8d87352040bc91d56a8368b17cb89
    Reviewed-on: https://chromium-review.googlesource.com/1022713Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
    Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#552512}
    b9322123
bookmark_bubble_controller.mm 17.7 KB