Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpp11 initializers 2 #5999

Merged
merged 4 commits into from
Jun 17, 2017
Merged

Cpp11 initializers 2 #5999

merged 4 commits into from
Jun 17, 2017

Conversation

nerzhul
Copy link
Member

@nerzhul nerzhul commented Jun 16, 2017

continue previous work: cleaning up constructors. Also fix some NULL checks on nullptr replaced values to be coherent & portable between NULL & nullptr

* Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop)
@nerzhul nerzhul added the Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements label Jun 16, 2017
@nerzhul nerzhul requested review from SmallJoker and Zeno- June 16, 2017 19:12
}
else
{
else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!m_font) {
	
} else {

}

as soon one part isn't an one-liner.

src/httpfetch.h Outdated

HTTPFetchResult(const HTTPFetchRequest &fetch_request)
: succeeded(false), timeout(false), response_code(0), data(""),
caller(fetch_request.caller), request_id(fetch_request.request_id)
: caller(fetch_request.caller), request_id(fetch_request.request_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LINT doesn't like this line

f32 m_pitch = 0.0f;
bool camera_barely_in_ceiling = false;
aabb3f m_collisionbox = aabb3f(-BS * 0.30f, 0.0f, -BS * 0.30f, BS * 0.30f,
BS * 1.75f, BS * 0.30f);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add the new line an argument earlier, so the X,Y,Z values are grouped nicely

@SmallJoker
Copy link
Member

Apart from the comments above, LGTM.

@nerzhul
Copy link
Member Author

nerzhul commented Jun 17, 2017

ty for review i will fix them soon

@nerzhul
Copy link
Member Author

nerzhul commented Jun 17, 2017

@SmallJoker all points fixed

@nerzhul nerzhul merged commit 8f77857 into minetest:master Jun 17, 2017
@nerzhul nerzhul added this to Done in Minetest C++11 Jun 17, 2017
@nerzhul nerzhul deleted the cpp11_initializers_2 branch September 5, 2017 20:35
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 11, 2019
* C++11 patchset 10: continue cleanup on constructors

* Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop)

* More classes cleanup

* More classes cleanup + change NULL tests to boolean tests
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 23, 2019
* C++11 patchset 10: continue cleanup on constructors

* Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop)

* More classes cleanup

* More classes cleanup + change NULL tests to boolean tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements One approval ✅ ◻️
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants