diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-04-29 22:29:17 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <mc@M0nst3r.bouyguesbox.fr> | 2015-04-29 22:29:17 +0000 |
| commit | c848ff33a5f3fd7eabfe83604bb42bb5e705c0b4 (patch) | |
| tree | 14d943d39ea2a0591430e731356a114de38feb5d /src | |
| parent | uint -> unsigned int (diff) | |
| download | inkscape-c848ff33a5f3fd7eabfe83604bb42bb5e705c0b4.tar.gz inkscape-c848ff33a5f3fd7eabfe83604bb42bb5e705c0b4.zip | |
unsigned int -> size_t
(bzr r14076)
Diffstat (limited to '')
| -rw-r--r-- | src/selection.cpp | 4 | ||||
| -rw-r--r-- | src/selection.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/selection.cpp b/src/selection.cpp index 017089ec5..53772c381 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -513,7 +513,7 @@ SPObject *Selection::_objectForXMLNode(Inkscape::XML::Node *repr) const { return object; } -unsigned int Selection::numberOfLayers() { +size_t Selection::numberOfLayers() { std::vector<SPItem*> const items = const_cast<Selection *>(this)->itemList(); std::set<SPObject*> layers; for ( std::vector<SPItem*>::const_iterator iter=items.begin();iter!=items.end();iter++ ) { @@ -523,7 +523,7 @@ unsigned int Selection::numberOfLayers() { return layers.size(); } -guint Selection::numberOfParents() { +size_t Selection::numberOfParents() { std::vector<SPItem*> const items = const_cast<Selection *>(this)->itemList(); std::set<SPObject*> parents; for ( std::vector<SPItem*>::const_iterator iter=items.begin();iter!=items.end();iter++ ) { diff --git a/src/selection.h b/src/selection.h index 7ac0f40f3..952dde51d 100644 --- a/src/selection.h +++ b/src/selection.h @@ -259,10 +259,10 @@ public: std::list<SPBox3D *> const box3DList(Persp3D *persp = NULL); /** Returns the number of layers in which there are selected objects. */ - unsigned int numberOfLayers(); + size_t numberOfLayers(); /** Returns the number of parents to which the selected objects belong. */ - unsigned int numberOfParents(); + size_t numberOfParents(); /** Returns the bounding rectangle of the selection. */ Geom::OptRect bounds(SPItem::BBoxType type) const; |
