Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Feb 25, 2024
1 parent ff75e87 commit ab1d5d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/core/modules/CustomObjectMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ float CustomObjectMgr::getSelectPriority() const
return CustomObject::selectPriority;
}

void CustomObjectMgr::addCustomObject(QString designation, Vec3d coordinates, bool isVisible)
void CustomObjectMgr::addCustomObject(const QString& designation, Vec3d coordinates, bool isVisible)
{
if (!designation.isEmpty())
{
Expand All @@ -163,7 +163,7 @@ void CustomObjectMgr::addCustomObject(QString designation, Vec3d coordinates, bo
}
}

void CustomObjectMgr::addCustomObject(QString designation, const QString &ra, const QString &dec, bool isVisible)
void CustomObjectMgr::addCustomObject(const QString& designation, const QString &ra, const QString &dec, bool isVisible)
{
Vec3d j2000;
double dRa = StelUtils::getDecAngle(ra);
Expand All @@ -173,7 +173,7 @@ void CustomObjectMgr::addCustomObject(QString designation, const QString &ra, co
addCustomObject(designation, j2000, isVisible);
}

void CustomObjectMgr::addCustomObjectRaDec(QString designation, const QString &ra, const QString &dec, bool isVisible)
void CustomObjectMgr::addCustomObjectRaDec(const QString& designation, const QString &ra, const QString &dec, bool isVisible)
{
Vec3d aim;
double dRa = StelUtils::getDecAngle(ra);
Expand All @@ -183,7 +183,7 @@ void CustomObjectMgr::addCustomObjectRaDec(QString designation, const QString &r
addCustomObject(designation, StelApp::getInstance().getCore()->equinoxEquToJ2000(aim, StelCore::RefractionOff), isVisible);
}

void CustomObjectMgr::addCustomObjectAltAzi(QString designation, const QString &alt, const QString &azi, bool isVisible)
void CustomObjectMgr::addCustomObjectAltAzi(const QString& designation, const QString &alt, const QString &azi, bool isVisible)
{
Vec3d aim;
double dAlt = StelUtils::getDecAngle(alt);
Expand Down
8 changes: 4 additions & 4 deletions src/core/modules/CustomObjectMgr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public slots:
//! @param designation - designation of custom object
//! @param coordinates - coordinates of custom object
//! @param isVisible - flag of visibility of custom object
void addCustomObject(QString designation, Vec3d coordinates, bool isVisible=false);
void addCustomObject(const QString& designation, Vec3d coordinates, bool isVisible=false);
//! Add custom object on the sky
//! @param designation - designation of custom object
//! @param ra - right ascension angle (J2000.0) of custom object
Expand All @@ -97,7 +97,7 @@ public slots:
//! // example of usage in scripts
//! CustomObjectMgr.addCustomObject("Marker", "2h10m15s", "60d01m15s", true);
//! @endcode
void addCustomObject(QString designation, const QString& ra, const QString& dec, bool isVisible=false);
void addCustomObject(const QString& designation, const QString& ra, const QString& dec, bool isVisible=false);
//! Add custom object on the sky
//! @param designation - designation of custom object
//! @param ra - right ascension angle (on date) of custom object
Expand All @@ -107,7 +107,7 @@ public slots:
//! // example of usage in scripts
//! CustomObjectMgr.addCustomObjectRaDec("Marker", "2h10m15s", "60d01m15s", true);
//! @endcode
void addCustomObjectRaDec(QString designation, const QString& ra, const QString& dec, bool isVisible=false);
void addCustomObjectRaDec(const QString& designation, const QString& ra, const QString& dec, bool isVisible=false);
//! Add custom object on the sky
//! @param designation - designation of custom object
//! @param alt - altitude of custom object
Expand All @@ -117,7 +117,7 @@ public slots:
//! // example of usage in scripts
//! CustomObjectMgr.addCustomObjectAltAzi("Marker", "2d10m15s", "60d01m15s", true);
//! @endcode
void addCustomObjectAltAzi(QString designation, const QString& alt, const QString& azi, bool isVisible=false);
void addCustomObjectAltAzi(const QString& designation, const QString& alt, const QString& azi, bool isVisible=false);
//! Remove all custom objects
void removeCustomObjects();
//! Remove just one custom object by English name
Expand Down

0 comments on commit ab1d5d3

Please sign in to comment.