Skip to content

Commit

Permalink
NavStars plugin: const refs
Browse files Browse the repository at this point in the history
  • Loading branch information
gzotti committed Aug 26, 2024
1 parent 11da5b3 commit 99cc172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/NavStars/src/NavStars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void NavStars::saveConfiguration(void)
conf->endGroup();
}

void NavStars::setCurrentNavigationalStarsSetKey(QString key)
void NavStars::setCurrentNavigationalStarsSetKey(const QString &key)
{
const QMetaEnum& en = metaObject()->enumerator(metaObject()->indexOfEnumerator("NavigationalStarsSet"));
NavigationalStarsSet nsSet = static_cast<NavigationalStarsSet>(en.keyToValue(key.toLatin1().data()));
Expand Down
2 changes: 1 addition & 1 deletion plugins/NavStars/src/NavStars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public slots:
QString getCurrentNavigationalStarsSetKey(void) const;
QString getCurrentNavigationalStarsSetDescription(void) const;
//! Set the set of navigational stars from its key
void setCurrentNavigationalStarsSetKey(QString key);
void setCurrentNavigationalStarsSetKey(const QString &key);

//! Adds StelObject::ExtraInfo for selected object.
void addExtraInfo(StelCore* core);
Expand Down

0 comments on commit 99cc172

Please sign in to comment.