[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/htmesh
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2011-02-20 18:03:33
Message-ID: 20110220180333.96930AC8D5 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1221847 by khudyakov:
Use const reference in idByPoint. Much more sensible
M +1 -1 SpatialIndex.cpp
M +1 -1 SpatialIndex.h
--- trunk/KDE/kdeedu/kstars/kstars/htmesh/SpatialIndex.cpp #1221846:1221847
@@ -509,7 +509,7 @@
//
uint64
-SpatialIndex::idByPoint(SpatialVector & v) const {
+SpatialIndex::idByPoint(const SpatialVector & v) const {
uint64 index;
uint64 ID;
--- trunk/KDE/kdeedu/kstars/kstars/htmesh/SpatialIndex.h #1221846:1221847
@@ -86,7 +86,7 @@
/** find a node by giving a vector.
The ID of the node is returned. */
- uint64 idByPoint(SpatialVector & vector) const;
+ uint64 idByPoint(const SpatialVector & vector) const;
/// find a node by giving a ra,dec in degrees.
uint64 idByPoint(const float64 & ra, const float64 & dec) const;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic