summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/node.h
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-02-04 23:17:44 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-02-04 23:17:44 +0000
commita04d9b7aa050920b7d98beac013e94e54fc2414a (patch)
tree1f871112bc6ac0b179c0a0fa4447907b0da67414 /src/ui/tool/node.h
parentrm unused InkRadioAction (diff)
downloadinkscape-a04d9b7aa050920b7d98beac013e94e54fc2414a.tar.gz
inkscape-a04d9b7aa050920b7d98beac013e94e54fc2414a.zip
NodeToolbar: GtkAction migration
Diffstat (limited to 'src/ui/tool/node.h')
-rw-r--r--src/ui/tool/node.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/tool/node.h b/src/ui/tool/node.h
index 26678a304..5e5249455 100644
--- a/src/ui/tool/node.h
+++ b/src/ui/tool/node.h
@@ -143,6 +143,8 @@ public:
*/
Node(NodeSharedData const &data, Geom::Point const &pos);
+ Node(Node const &) = delete;
+
void move(Geom::Point const &p) override;
void transform(Geom::Affine const &m) override;
Geom::Rect bounds() const override;
@@ -230,7 +232,6 @@ protected:
private:
- Node(Node const &) = delete;
void _fixNeighbors(Geom::Point const &old_pos, Geom::Point const &new_pos);
void _updateAutoHandles();
@@ -313,7 +314,7 @@ public:
_node = (_node?_node->ln_prev:nullptr);
return *this;
}
- bool operator==(self const &other) const { if(&other){return _node == other._node;} else{return false;} }
+ bool operator==(self const &other) const { return _node == other._node; }
N &operator*() const { return *static_cast<N*>(_node); }
inline operator bool() const; // define after NodeList
/// Get a pointer to the underlying node. Equivalent to <code>&*i</code>.
@@ -364,6 +365,10 @@ public:
~NodeList();
+ // no copy or assign
+ NodeList(NodeList const &) = delete;
+ void operator=(NodeList const &) = delete;
+
// iterators
iterator begin() { return iterator(ln_next); }
iterator end() { return iterator(this); }
@@ -432,9 +437,6 @@ public:
static NodeList &get(Node *n);
static NodeList &get(iterator const &i);
private:
- // no copy or assign
- NodeList(NodeList const &) = delete;
- void operator=(NodeList const &) = delete;
SubpathList &_list;
bool _closed;