diff options
| author | VinÃcius dos Santos Oliveira <vini.ipsmaker@gmail.com> | 2013-09-13 07:00:18 +0000 |
|---|---|---|
| committer | VinÃcius dos Santos Oliveira <vini.ipsmaker@gmail.com> | 2013-09-13 07:00:18 +0000 |
| commit | 0f397bdb1eae4d190a5a7d7a4792d0571917753b (patch) | |
| tree | 3898ca27cedb36503dfd13818880062566fdc6aa /src/libdepixelize/priv/pixelgraph.h | |
| parent | Removing obvious comments from PixelArtDialog (diff) | |
| download | inkscape-0f397bdb1eae4d190a5a7d7a4792d0571917753b.tar.gz inkscape-0f397bdb1eae4d190a5a7d7a4792d0571917753b.zip | |
Bumping new version of libdepixelize
(bzr r12506.1.3)
Diffstat (limited to 'src/libdepixelize/priv/pixelgraph.h')
| -rw-r--r-- | src/libdepixelize/priv/pixelgraph.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libdepixelize/priv/pixelgraph.h b/src/libdepixelize/priv/pixelgraph.h index 0ae4f36b4..32523d8ee 100644 --- a/src/libdepixelize/priv/pixelgraph.h +++ b/src/libdepixelize/priv/pixelgraph.h @@ -40,7 +40,7 @@ public: /* * Hamming weight of \p adj */ - unsigned adjsize() + unsigned adjsize() const { unsigned all[8] = { adj.top, @@ -145,7 +145,6 @@ public: return _nodes.rend(); } - // Capacity size_t size() const { return _nodes.size(); @@ -164,14 +163,14 @@ public: // Algorithms void connectAllNeighbors(); - int toX(Node *n) const + int toX(const_iterator n) const { - return (n - &_nodes[0]) % _width; + return (&*n - &_nodes[0]) % _width; } - int toY(Node *n) const + int toY(const_iterator n) const { - return (n - &_nodes[0]) / _width; + return (&*n - &_nodes[0]) / _width; } iterator nodeTop(iterator n) |
