Return reference from getInfoURL() of DeepSkyObject and Location

pull/3/head
Hleb Valoshka 2018-12-06 22:47:47 +03:00
parent 91b783102d
commit 514a948144
4 changed files with 5 additions and 5 deletions

View File

@ -72,7 +72,7 @@ string DeepSkyObject::getDescription() const
return "";
}
string DeepSkyObject::getInfoURL() const
const string& DeepSkyObject::getInfoURL() const
{
return infoURL;
}

View File

@ -73,7 +73,7 @@ class DeepSkyObject : public CatEntry
float getAbsoluteMagnitude() const;
void setAbsoluteMagnitude(float);
std::string getInfoURL() const;
const std::string& getInfoURL() const;
void setInfoURL(const std::string&);
bool isVisible() const { return visible; }

View File

@ -150,9 +150,9 @@ void Location::setImportance(float _importance)
}
string Location::getInfoURL() const
const string& Location::getInfoURL() const
{
return "";
return infoURL;
}

View File

@ -35,7 +35,7 @@ public:
float getImportance() const;
void setImportance(float);
std::string getInfoURL() const;
const std::string& getInfoURL() const;
void setInfoURL(const std::string&);
bool isLabelColorOverridden() const { return overrideLabelColor; }