Skip to content

Commit

Permalink
Harmonise a few more SelectionChangedSlot constructions to use std::b…
Browse files Browse the repository at this point in the history
…ind instead of sigc::mem_fun, just to be consistent.
  • Loading branch information
codereader committed Apr 30, 2022
1 parent 278e229 commit edb6422
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion radiantcore/entity/light/LightNode.cpp
Expand Up @@ -23,7 +23,7 @@ LightNode::LightNode(const IEntityClassPtr& eclass)
m_boundsChanged(std::bind(&scene::Node::boundsChanged, this)),
_instances(getDoom3Radius().m_centerTransformed, _projVectors.transformed,
sigc::mem_fun(*this, &LightNode::selectedChangedComponent)),
_dragPlanes(sigc::mem_fun(this, &LightNode::selectedChangedComponent)),
_dragPlanes(std::bind(&LightNode::selectedChangedComponent, this, std::placeholders::_1)),
_renderableOctagon(*this, 0.5), // transparent
_renderableOctagonOutline(*this, 1.0), // opaque lines
_renderableLightVolume(*this),
Expand Down
2 changes: 1 addition & 1 deletion radiantcore/selection/textool/Node.cpp
Expand Up @@ -10,7 +10,7 @@ namespace textool
{

Node::Node() :
_selectable(sigc::mem_fun(*this, &Node::onSelectionStatusChanged))
_selectable(std::bind(&Node::onSelectionStatusChanged, this, std::placeholders::_1))
{}

void Node::setSelected(bool select)
Expand Down
2 changes: 1 addition & 1 deletion radiantcore/selection/textool/SelectableVertex.h
Expand Up @@ -15,7 +15,7 @@ class SelectableVertex :

public:
SelectableVertex(Vector3& vertex, Vector2& texcoord) :
ObservedSelectable(sigc::mem_fun(*this, &SelectableVertex::onSelectionStatusChanged)),
ObservedSelectable(std::bind(&SelectableVertex::onSelectionStatusChanged, this, std::placeholders::_1)),
_vertex(vertex),
_texcoord(texcoord)
{}
Expand Down

0 comments on commit edb6422

Please sign in to comment.