Bug 95640 - [EFL] Add missing semicolon at the end of some lines.
Summary: [EFL] Add missing semicolon at the end of some lines.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-01 02:00 PDT by Byungwoo Lee
Modified: 2012-09-02 10:43 PDT (History)
5 users (show)

See Also:


Attachments
Patch (13.92 KB, patch)
2012-09-01 08:25 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff
Patch (13.92 KB, patch)
2012-09-01 08:29 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff
Patch (8.27 KB, patch)
2012-09-01 17:59 PDT, Byungwoo Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Byungwoo Lee 2012-09-01 02:00:12 PDT
In the ewk_view.cpp, there are some lines that doesn't have semicolon,
but there was no build error about this.

This is caused by some macro definition in the file.
Comment 1 Byungwoo Lee 2012-09-01 08:25:36 PDT
Created attachment 161827 [details]
Patch
Comment 2 Byungwoo Lee 2012-09-01 08:29:18 PDT
Created attachment 161828 [details]
Patch
Comment 3 Byungwoo Lee 2012-09-01 08:29:42 PDT
Fixed typo in Changelog.
Comment 4 Chris Dumez 2012-09-01 09:18:21 PDT
Comment on attachment 161828 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=161828&action=review

On principal, I like the idea.

> Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:168
> +    } while (0)

We don't technically need to do { } while(0) here. Why not simply get rid of the semicolon at the end of evas_object_smart_data_get(ewkView)?
Comment 5 Raphael Kubo da Costa (:rakuco) 2012-09-01 10:52:01 PDT
Comment on attachment 161828 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=161828&action=review

EWK_VIEW_TYPE_CHECK does not seem to have had any meaningful change, I don't understand the reason for the additional spaces at the end of the lines.

>> Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:168
>> +    } while (0)
> 
> We don't technically need to do { } while(0) here. Why not simply get rid of the semicolon at the end of evas_object_smart_data_get(ewkView)?

The best reason I can think of is convention.
Comment 6 Byungwoo Lee 2012-09-01 17:44:35 PDT
(In reply to comment #5)

> EWK_VIEW_TYPE_CHECK does not seem to have had any meaningful change, I don't understand the reason for the additional spaces at the end of the lines.
It was because that all the position of the '\' were fitted in the previous code.

> 
> >> Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:168
> >> +    } while (0)
> > 
> > We don't technically need to do { } while(0) here. Why not simply get rid of the semicolon at the end of evas_object_smart_data_get(ewkView)?
> 
> The best reason I can think of is convention.
Yes, I just add the while (0), but I think removing semicolon will be easier for the line. And with this additional fitting for '\' also not required.

I'll change those. Thanks :)
Comment 7 Byungwoo Lee 2012-09-01 17:59:18 PDT
Created attachment 161835 [details]
Patch
Comment 8 Chris Dumez 2012-09-01 23:29:40 PDT
Comment on attachment 161835 [details]
Patch

LGTM.
Comment 9 Raphael Kubo da Costa (:rakuco) 2012-09-02 03:30:17 PDT
Comment on attachment 161835 [details]
Patch

Looks good, thank you.
Comment 10 WebKit Review Bot 2012-09-02 10:43:28 PDT
Comment on attachment 161835 [details]
Patch

Clearing flags on attachment: 161835

Committed r127390: <http://trac.webkit.org/changeset/127390>
Comment 11 WebKit Review Bot 2012-09-02 10:43:32 PDT
All reviewed patches have been landed.  Closing bug.