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: last src root changeset #6022

Merged
merged 4 commits into from Jun 21, 2017

Conversation

nerzhul
Copy link
Member

@nerzhul nerzhul commented Jun 20, 2017

Finish to migrate all src root folder files to C++11 constructor initializers

also remove some unused parameters

Finish to migrate all src root folder files to C++11 constructor initializers
@nerzhul nerzhul added the Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements label Jun 20, 2017
/*
The block from which the object was loaded from, and in which
a copy of the static data resides.
*/
v3s16 m_static_block;
v3s16 m_static_block = v3s16(1337,1337,1337);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the significance of 1337? Just a magic number?

src/subgame.h Outdated
@@ -38,14 +36,14 @@ struct SubgameSpec
std::string menuicon_path;

SubgameSpec(const std::string &id_="",
const std::string &path_="",
const std::string &path_="",
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't pad with spaces around '=' anymore?

bool m_move_has_really_moved = false;
s64 m_move_downtime = 0;
bool m_move_sent_as_mouse_event = false;
v2s32 m_move_downlocation = v2s32(-10000, -10000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why -10000, -10000?

src/voxel.h Outdated
v3s16 MaxEdge;
};

// unused
// unused
#define VOXELFLAG_UNUSED (1<<0)
Copy link
Contributor

Choose a reason for hiding this comment

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

padding around << operator?

src/voxel.h Outdated
v3s16 MaxEdge;
};

// unused
// unused
#define VOXELFLAG_UNUSED (1<<0)
// no data about that node
#define VOXELFLAG_NO_DATA (1<<1)
Copy link
Contributor

Choose a reason for hiding this comment

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

padding around << operator?

@Zeno-
Copy link
Contributor

Zeno- commented Jun 21, 2017

👍

@nerzhul nerzhul merged commit 1425c6d into minetest:master Jun 21, 2017
@nerzhul nerzhul added this to Done in Minetest C++11 Jun 25, 2017
@nerzhul nerzhul deleted the cpp11_initializers_last branch August 19, 2017 10:22
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 11, 2019
* Cpp11 initializers: last src root changeset

Finish to migrate all src root folder files to C++11 constructor initializers
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 23, 2019
* Cpp11 initializers: last src root changeset

Finish to migrate all src root folder files to C++11 constructor initializers
luk3yx pushed a commit to luk3yx/minetest that referenced this pull request Mar 6, 2019
* Cpp11 initializers: last src root changeset

Finish to migrate all src root folder files to C++11 constructor initializers
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