mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:50:05 +00:00
Reformat marker formats after rename
This commit is contained in:
parent
31940441ed
commit
74f3a15eb2
3 changed files with 19 additions and 26 deletions
|
|
@ -42,7 +42,6 @@ public:
|
|||
void ReadMarkerSettings();
|
||||
void WriteMarkerSettings();
|
||||
std::shared_ptr<MarkerRecord> GetMarkerByName(const std::string& name);
|
||||
|
||||
};
|
||||
|
||||
class MarkerManager::Impl::MarkerRecord
|
||||
|
|
@ -76,7 +75,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
void MarkerManager::Impl::InitializeMarkerSettings()
|
||||
{
|
||||
std::string appDataPath {
|
||||
|
|
@ -235,9 +233,7 @@ void MarkerManager::move_marker(size_t from, size_t to)
|
|||
std::shared_ptr<MarkerManager::Impl::MarkerRecord> markerRecord =
|
||||
p->markerRecords_[from];
|
||||
|
||||
if (from == to)
|
||||
{
|
||||
}
|
||||
if (from == to) {}
|
||||
else if (from < to)
|
||||
{
|
||||
for (size_t i = from; i < to; i++)
|
||||
|
|
@ -260,7 +256,8 @@ std::shared_ptr<MarkerManager> MarkerManager::Instance()
|
|||
{
|
||||
static std::weak_ptr<MarkerManager> markerManagerReference_ {};
|
||||
|
||||
std::shared_ptr<MarkerManager> markerManager = markerManagerReference_.lock();
|
||||
std::shared_ptr<MarkerManager> markerManager =
|
||||
markerManagerReference_.lock();
|
||||
|
||||
if (markerManager == nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace map
|
|||
static const std::string logPrefix_ = "scwx::qt::map::marker_layer";
|
||||
static const auto logger_ = scwx::util::Logger::Create(logPrefix_);
|
||||
|
||||
|
||||
class MarkerLayer::Impl
|
||||
{
|
||||
public:
|
||||
|
|
@ -51,8 +50,7 @@ void MarkerLayer::Impl::ReloadMarkers()
|
|||
}
|
||||
|
||||
MarkerLayer::MarkerLayer(const std::shared_ptr<MapContext>& context) :
|
||||
DrawLayer(context),
|
||||
p(std::make_unique<MarkerLayer::Impl>(context))
|
||||
DrawLayer(context), p(std::make_unique<MarkerLayer::Impl>(context))
|
||||
{
|
||||
AddDrawItem(p->geoIcons_);
|
||||
}
|
||||
|
|
@ -69,8 +67,7 @@ void MarkerLayer::Initialize()
|
|||
p->geoIcons_->FinishIconSheets();
|
||||
}
|
||||
|
||||
void MarkerLayer::Render(
|
||||
const QMapLibre::CustomLayerRenderParameters& params)
|
||||
void MarkerLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
|
||||
{
|
||||
// auto markerManager = manager::MarkerManager::Instance();
|
||||
gl::OpenGLFunctions& gl = context()->gl();
|
||||
|
|
@ -93,4 +90,3 @@ void MarkerLayer::Deinitialize()
|
|||
} // namespace map
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue