summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-09-28 22:14:34 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-09-29 02:20:27 (GMT)
commitb85333ab7c877f4dba627caf307a1f872240d39b (patch)
treef9bf7128f905fb6cd2f339755382f83e807b24f8
parentfdf1cac2eb57430b86b8c63ffe842574467f6a77 (diff)
constify CachingDms setters
-rw-r--r--kstars/skyobjects/skypoint.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kstars/skyobjects/skypoint.h b/kstars/skyobjects/skypoint.h
index 077216b..586b1a8 100644
--- a/kstars/skyobjects/skypoint.h
+++ b/kstars/skyobjects/skypoint.h
@@ -123,7 +123,7 @@ public:
*@param d catalog Declination.
*/
inline void setDec0( dms d ) { Dec0 = d; }
- inline void setDec0( CachingDms d ) { Dec0 = d; }
+ inline void setDec0( const CachingDms &d ) { Dec0 = d; }
/** Overloaded member function, provided for convenience.
*It behaves essentially like the above function.
@@ -135,7 +135,7 @@ public:
*@param r Right Ascension.
*/
inline void setRA( dms r ) { RA = r; }
- inline void setRA( CachingDms r ) { RA = r; }
+ inline void setRA( const CachingDms &r ) { RA = r; }
/** Overloaded member function, provided for convenience.
*It behaves essentially like the above function.
@@ -147,7 +147,7 @@ public:
*@param d Declination.
*/
inline void setDec( dms d ) { Dec = d; }
- inline void setDec( CachingDms d ) { Dec = d; }
+ inline void setDec( const CachingDms &d ) { Dec = d; }
/** Overloaded member function, provided for convenience.
*It behaves essentially like the above function.