summaryrefslogtreecommitdiffstats
path: root/src/document.h
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2014-01-11 11:46:14 +0000
committerKris <Kris.De.Gussem@hotmail.com>2014-01-11 11:46:14 +0000
commit8c982dba53fde33ed4ac47645049938259894a8e (patch)
tree47086c44decdf027c46db42563053f3c44e11c37 /src/document.h
parentgtkmmification (seems there is more margin in desktop-widget.cpp) (diff)
downloadinkscape-8c982dba53fde33ed4ac47645049938259894a8e.tar.gz
inkscape-8c982dba53fde33ed4ac47645049938259894a8e.zip
pass class variables by reference for performance
(bzr r12916)
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);