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

v1.1.0 : Removed unnecessary null pointer checks #18

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

Ullaakut
Copy link
Owner

@Ullaakut Ullaakut commented Nov 3, 2016

No description provided.

@Ullaakut Ullaakut self-assigned this Nov 3, 2016
@Ullaakut Ullaakut merged commit f80af6b into master Nov 3, 2016
@@ -105,13 +102,25 @@ cache_manager_iface* cache_manager::operator->() { return this->ptr; }

const cache_manager_iface* cache_manager::operator->() const { return this->ptr; }

bool operator==(std::nullptr_t nullp, const cache_manager& p) { return p.ptr == nullp; }
Copy link

Choose a reason for hiding this comment

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

Should such a source code layout change for equality comparison functions belong to an other commit?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes, it should. My mistake! Thank you for pointing that out :)

@elfring
Copy link

elfring commented Nov 3, 2016

Thanks for your small source code improvement.

@Ullaakut
Copy link
Owner Author

Ullaakut commented Nov 4, 2016

@elfring Well, thank you for your contribution. It's very nice of you!

Ullaakut pushed a commit that referenced this pull request Nov 20, 2016
@Ullaakut Ullaakut deleted the bugfix/remove-unnecessary-null-pointer-checks branch December 13, 2016 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants