summaryrefslogtreecommitdiffstats
path: root/src/document.h
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-01-12 19:13:03 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-01-12 19:13:03 +0000
commitb94459967625b9aac3b3dce1d3a908e5ddd95450 (patch)
tree5b9bc8c9f6715e4113563e2f09886a2f4670bec5 /src/document.h
parentupdate to trunk (diff)
parentpass class variables by reference for performance (diff)
downloadinkscape-b94459967625b9aac3b3dce1d3a908e5ddd95450.tar.gz
inkscape-b94459967625b9aac3b3dce1d3a908e5ddd95450.zip
update to trunk
(bzr r11950.1.234)
Diffstat (limited to 'src/document.h')
-rw-r--r--src/document.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/document.h b/src/document.h
index 0977fc7a8..cc565e3aa 100644
--- a/src/document.h
+++ b/src/document.h
@@ -222,7 +222,7 @@ public:
/**
* Returns the bottommost item from the list which is at the point, or NULL if none.
*/
- static SPItem *getItemFromListAtPointBottom(unsigned int dkey, SPGroup *group, const GSList *list, Geom::Point const p, bool take_insensitive = false);
+ static SPItem *getItemFromListAtPointBottom(unsigned int dkey, SPGroup *group, const GSList *list, Geom::Point const &p, bool take_insensitive = false);
// ToDo - Merge createDoc with createNewDoc
static SPDocument *createDoc(Inkscape::XML::Document *rdoc, gchar const *uri, gchar const *base, gchar const *name, unsigned int keepalive);
@@ -244,9 +244,9 @@ public:
const GSList *getResourceList(const gchar *key) const;
GSList *getItemsInBox(unsigned int dkey, Geom::Rect const &box) const;
GSList *getItemsPartiallyInBox(unsigned int dkey, Geom::Rect const &box) const;
- SPItem *getItemAtPoint(unsigned int key, Geom::Point const p, gboolean into_groups, SPItem *upto = NULL) const;
+ SPItem *getItemAtPoint(unsigned int key, Geom::Point const &p, gboolean into_groups, SPItem *upto = NULL) const;
GSList *getItemsAtPoints(unsigned const key, std::vector<Geom::Point> points) const;
- SPItem *getGroupAtPoint(unsigned int key, Geom::Point const p) const;
+ SPItem *getGroupAtPoint(unsigned int key, Geom::Point const &p) const;
void changeUriAndHrefs(gchar const *uri);
void emitResizedSignal(gdouble width, gdouble height);