diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/desktop.cpp | 6 | ||||
| -rw-r--r-- | src/desktop.h | 8 | ||||
| -rw-r--r-- | src/document.cpp | 10 | ||||
| -rw-r--r-- | src/document.h | 6 |
4 files changed, 15 insertions, 15 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp index cd2d1177d..195127ca1 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -695,7 +695,7 @@ Inkscape::UI::Widget::Dock* SPDesktop::getDock() { /** * \see SPDocument::getItemFromListAtPointBottom() */ -SPItem *SPDesktop::getItemFromListAtPointBottom(const GSList *list, Geom::Point const p) const +SPItem *SPDesktop::getItemFromListAtPointBottom(const GSList *list, Geom::Point const &p) const { g_return_val_if_fail (doc() != NULL, NULL); return SPDocument::getItemFromListAtPointBottom(dkey, doc()->getRoot(), list, p); @@ -704,7 +704,7 @@ SPItem *SPDesktop::getItemFromListAtPointBottom(const GSList *list, Geom::Point /** * \see SPDocument::getItemAtPoint() */ -SPItem *SPDesktop::getItemAtPoint(Geom::Point const p, bool into_groups, SPItem *upto) const +SPItem *SPDesktop::getItemAtPoint(Geom::Point const &p, bool into_groups, SPItem *upto) const { g_return_val_if_fail (doc() != NULL, NULL); return doc()->getItemAtPoint( dkey, p, into_groups, upto); @@ -713,7 +713,7 @@ SPItem *SPDesktop::getItemAtPoint(Geom::Point const p, bool into_groups, SPItem /** * \see SPDocument::getGroupAtPoint() */ -SPItem *SPDesktop::getGroupAtPoint(Geom::Point const p) const +SPItem *SPDesktop::getGroupAtPoint(Geom::Point const &p) const { g_return_val_if_fail (doc() != NULL, NULL); return doc()->getGroupAtPoint(dkey, p); diff --git a/src/desktop.h b/src/desktop.h index d3f2d082a..2f47dc2dd 100644 --- a/src/desktop.h +++ b/src/desktop.h @@ -311,9 +311,9 @@ public: //void push_event_context (GType type, const gchar *config, unsigned int key); void set_coordinate_status (Geom::Point p); - SPItem *getItemFromListAtPointBottom(const GSList *list, Geom::Point const p) const; - SPItem *getItemAtPoint(Geom::Point const p, bool into_groups, SPItem *upto = NULL) const; - SPItem *getGroupAtPoint(Geom::Point const p) const; + SPItem *getItemFromListAtPointBottom(const GSList *list, Geom::Point const &p) const; + SPItem *getItemAtPoint(Geom::Point const &p, bool into_groups, SPItem *upto = NULL) const; + SPItem *getGroupAtPoint(Geom::Point const &p) const; Geom::Point point() const; Geom::Rect get_display_area() const; @@ -343,7 +343,7 @@ public: bool scroll_to_point (Geom::Point const &s_dt, gdouble autoscrollspeed = 0); void scroll_world (double dx, double dy, bool is_scrolling = false); - void scroll_world (Geom::Point const scroll, bool is_scrolling = false) + void scroll_world (Geom::Point const &scroll, bool is_scrolling = false) { scroll_world(scroll[Geom::X], scroll[Geom::Y], is_scrolling); } diff --git a/src/document.cpp b/src/document.cpp index e6166ee82..e56adee68 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -1173,7 +1173,7 @@ static bool item_is_in_group(SPItem *item, SPGroup *group) return inGroup; } -SPItem *SPDocument::getItemFromListAtPointBottom(unsigned int dkey, SPGroup *group, GSList const *list,Geom::Point const p, bool take_insensitive) +SPItem *SPDocument::getItemFromListAtPointBottom(unsigned int dkey, SPGroup *group, GSList const *list,Geom::Point const &p, bool take_insensitive) { g_return_val_if_fail(group, NULL); SPItem *bottomMost = 0; @@ -1209,7 +1209,7 @@ items. If upto != NULL, then if item upto is encountered (at any level), stops s upwards in z-order and returns what it has found so far (i.e. the found item is guaranteed to be lower than upto). */ -static SPItem *find_item_at_point(unsigned int dkey, SPGroup *group, Geom::Point const p, gboolean into_groups, bool take_insensitive = false, SPItem *upto = NULL) +static SPItem *find_item_at_point(unsigned int dkey, SPGroup *group, Geom::Point const &p, gboolean into_groups, bool take_insensitive = false, SPItem *upto = NULL) { SPItem *seen = NULL; SPItem *newseen = NULL; @@ -1254,7 +1254,7 @@ static SPItem *find_item_at_point(unsigned int dkey, SPGroup *group, Geom::Point Returns the topmost non-layer group from the descendants of group which is at point p, or NULL if none. Recurses into layers but not into groups. */ -static SPItem *find_group_at_point(unsigned int dkey, SPGroup *group, Geom::Point const p) +static SPItem *find_group_at_point(unsigned int dkey, SPGroup *group, Geom::Point const &p) { SPItem *seen = NULL; Inkscape::Preferences *prefs = Inkscape::Preferences::get(); @@ -1334,7 +1334,7 @@ GSList *SPDocument::getItemsAtPoints(unsigned const key, std::vector<Geom::Point return items; } -SPItem *SPDocument::getItemAtPoint( unsigned const key, Geom::Point const p, +SPItem *SPDocument::getItemAtPoint( unsigned const key, Geom::Point const &p, gboolean const into_groups, SPItem *upto) const { g_return_val_if_fail(this->priv != NULL, NULL); @@ -1342,7 +1342,7 @@ SPItem *SPDocument::getItemAtPoint( unsigned const key, Geom::Point const p, return find_item_at_point(key, SP_GROUP(this->root), p, into_groups, false, upto); } -SPItem *SPDocument::getGroupAtPoint(unsigned int key, Geom::Point const p) const +SPItem *SPDocument::getGroupAtPoint(unsigned int key, Geom::Point const &p) const { g_return_val_if_fail(this->priv != NULL, NULL); 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); |
