Return reference from getInfoURL() of DeepSkyObject and Location
parent
91b783102d
commit
514a948144
|
@ -72,7 +72,7 @@ string DeepSkyObject::getDescription() const
|
|||
return "";
|
||||
}
|
||||
|
||||
string DeepSkyObject::getInfoURL() const
|
||||
const string& DeepSkyObject::getInfoURL() const
|
||||
{
|
||||
return infoURL;
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -150,9 +150,9 @@ void Location::setImportance(float _importance)
|
|||
}
|
||||
|
||||
|
||||
string Location::getInfoURL() const
|
||||
const string& Location::getInfoURL() const
|
||||
{
|
||||
return "";
|
||||
return infoURL;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue