Closed Bug 1334795 Opened 7 years ago Closed 7 years ago

nsWindow.cpp: redundant return statement at the end of a function with a void return type

Categories

(Core :: Widget: Gtk, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox54 --- wontfix
firefox55 --- fixed

People

(Reporter: Sylvestre, Assigned: nitishplus98, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++][tpi:+])

Attachments

(1 file)

Keywords: good-first-bug
Whiteboard: [good first bug][lang=C++] → [lang=C++]
Comment on attachment 8831514 [details]
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type.

Good work, now please find a reviewer:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_4_-_Get_your_code_reviewed
Attachment #8831514 - Flags: feedback+
Assignee: nobody → nitishplus98
Thanks for assigning the bug.
Will you be willing to review it if I add you as a reviewer?
Attachment #8831514 - Flags: review?(karlt)
Comment on attachment 8831514 [details]
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type.

https://reviewboard.mozilla.org/r/108070/#review111778

::: widget/gtk/nsWindow.cpp
(Diff revision 1)
>  
>      if (mIsTopLevel || mListenForResizes) {
>          DispatchResized();
>      }
> -
> -    return;

> removed two redundant return statements at the end of a function with a void return type

Please use imperative mood instead of indicative, and make "end" and "function" plural.

"remove two redundant return statements at the ends of functions with void return type"
Attachment #8831514 - Flags: review?(karlt) → review+
Attachment #8831514 - Flags: review?(karlt)
Priority: -- → P5
Whiteboard: [lang=C++] → [lang=C++][tpi:+]
Comment on attachment 8831514 [details]
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type.

I don't know why mozreview removed the f+ and r+, sorry.
Attachment #8831514 - Flags: review?(karlt) → review+
Hello I am a new developer.Can I work on this bug?
Sorry but someone has been working on this already.
Is there anything else to do, like adding tests?
You should mark Karl's comment as "Fixed" in the review:
https://reviewboard.mozilla.org/r/108070/#issue-summary

Then, either do:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_6_-_Actually_get_the_code_into_the_tree

Or ask me to land it for you through mozreview & autoland (I cannot do it for you as you haven't closed the review)
Marked the comment as "Fixed". A small query,is the marking done to ensure that the person working on it has fixed the reopened issue?
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9e21c2dc1b0d
nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type. r=karlt
https://hg.mozilla.org/mozilla-central/rev/9e21c2dc1b0d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: