forked from organicmaps/organicmaps
[placepage] Remove duplicate kStarSymbol
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> place page
This commit is contained in:
parent
3f81ad6f30
commit
9fecf56e9e
2 changed files with 8 additions and 8 deletions
|
@ -19,10 +19,9 @@
|
|||
|
||||
namespace place_page
|
||||
{
|
||||
char const * const Info::kStarSymbol = "★";
|
||||
char const * const Info::kMountainSymbol = "▲";
|
||||
char const * const kWheelchairSymbol = "\u267F";
|
||||
char const * const kAtmSymbol = "💳";
|
||||
static constexpr std::string_view kMountainSymbol= "▲";
|
||||
static constexpr std::string_view kWheelchairSymbol = "♿️";
|
||||
static constexpr std::string_view kAtmSymbol = "💳";
|
||||
|
||||
bool Info::IsBookmark() const
|
||||
{
|
||||
|
@ -162,7 +161,10 @@ std::string Info::FormatSubtitle(bool withType) const
|
|||
// Elevation.
|
||||
auto const eleStr = GetElevationFormatted();
|
||||
if (!eleStr.empty())
|
||||
append(kMountainSymbol + eleStr);
|
||||
{
|
||||
append(kMountainSymbol);
|
||||
append(eleStr);
|
||||
}
|
||||
|
||||
// ATM
|
||||
if (HasAtm())
|
||||
|
@ -301,7 +303,7 @@ std::string Info::FormatStars() const
|
|||
{
|
||||
std::string stars;
|
||||
for (int i = 0; i < GetStars(); ++i)
|
||||
stars.append(kStarSymbol);
|
||||
stars.append(MapObject::kStarSymbol);
|
||||
return stars;
|
||||
}
|
||||
|
||||
|
|
|
@ -104,8 +104,6 @@ struct BuildInfo
|
|||
class Info : public osm::MapObject
|
||||
{
|
||||
public:
|
||||
static char const * const kStarSymbol;
|
||||
static char const * const kMountainSymbol;
|
||||
|
||||
void SetBuildInfo(place_page::BuildInfo const & info) { m_buildInfo = info; }
|
||||
place_page::BuildInfo const & GetBuildInfo() const { return m_buildInfo; }
|
||||
|
|
Loading…
Add table
Reference in a new issue