Skip to content

Make defineProperty take handler by const& and clean up std::moves#427

Merged
jjcherry56 merged 1 commit intoparallaxsw:masterfrom
calewis:fix-property-handler
Apr 21, 2026
Merged

Make defineProperty take handler by const& and clean up std::moves#427
jjcherry56 merged 1 commit intoparallaxsw:masterfrom
calewis:fix-property-handler

Conversation

@calewis
Copy link
Copy Markdown
Contributor

@calewis calewis commented Apr 21, 2026

If you leave them as non-const & then you can't pass rvalue lambdas in via this interface anymore.

Signed-off-by: Drew Lewis <cannada@google.com>
Comment thread search/Property.cc
PropertyHandler handler)
{
registry_[std::string(property)] = std::move(std::move(std::move(std::move(std::move(std::move(std::move(std::move(std::move(std::move(handler))))))))));
registry_[std::string(property)] = std::move(handler);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

WTF, claude stuttering

@jjcherry56 jjcherry56 merged commit d8c56f1 into parallaxsw:master Apr 21, 2026
2 checks passed
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.

2 participants