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

C++11 cleanup on constructors #6000

Merged
merged 6 commits into from Jun 19, 2017
Merged

Conversation

Dumbeldor
Copy link
Contributor

No description provided.

@@ -72,8 +72,7 @@ class ModNameStorer
*/

ScriptApiBase::ScriptApiBase() :
m_luastackmutex(),
m_gamedef(NULL)
m_luastackmutex()
Copy link
Member

Choose a reason for hiding this comment

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

this constructor is useless you can remove it

@nerzhul nerzhul added the Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements label Jun 17, 2017
@nerzhul nerzhul added this to Todo in Minetest C++11 Jun 17, 2017
@Dumbeldor Dumbeldor changed the title [WIP] C++11 cleanup on constructors C++11 cleanup on constructors Jun 17, 2017
Copy link
Member

@nerzhul nerzhul left a comment

Choose a reason for hiding this comment

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

Please rename m_vm to vm like original case,
else LGTM

@nerzhul
Copy link
Member

nerzhul commented Jun 19, 2017

@Zeno- @SmallJoker can you take a look ?

@nerzhul nerzhul added this to Ready to merge in Minetest 5.0.0 blockers Jun 19, 2017
@@ -49,7 +49,7 @@ class LuaAreaStore : public ModApiBase
static int l_from_file(lua_State *L);

public:
AreaStore *as;
AreaStore *m_as = nullptr;
Copy link
Member

Choose a reason for hiding this comment

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

m_ prefix is used for private members. Revert to as or areastore.

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

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

+1 once TravisCI reports success

@@ -32,7 +32,6 @@ void Event::wait()
while (!notified) {
cv.wait(lock);
}
notified = false;
Copy link
Member

Choose a reason for hiding this comment

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

why this disappears ?

@nerzhul nerzhul merged commit 4a5e8ad into minetest:master Jun 19, 2017
@nerzhul nerzhul moved this from Todo to Done in Minetest C++11 Jun 25, 2017
@nerzhul nerzhul moved this from Ready to merge to Done in Minetest 5.0.0 blockers Jun 27, 2017
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 11, 2019
* C++11 cleanup on constructors dir script
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 23, 2019
* C++11 cleanup on constructors dir script
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 >= Two approvals ✅ ✅
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants