mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:10:05 +00:00
Clang tidy/format fixes for fix_AlertLayer_circular_reference
This commit is contained in:
parent
a8568d24f6
commit
f82ed0d9d4
1 changed files with 2 additions and 2 deletions
|
|
@ -633,7 +633,7 @@ void AlertLayer::Impl::AddLine(std::shared_ptr<gl::draw::GeoLines>& geoLines,
|
||||||
std::placeholders::_1,
|
std::placeholders::_1,
|
||||||
std::placeholders::_2));
|
std::placeholders::_2));
|
||||||
|
|
||||||
std::weak_ptr<gl::draw::GeoLineDrawItem> diWeak = di;
|
const std::weak_ptr<gl::draw::GeoLineDrawItem> diWeak = di;
|
||||||
gl::draw::GeoLines::RegisterEventHandler(
|
gl::draw::GeoLines::RegisterEventHandler(
|
||||||
di,
|
di,
|
||||||
std::bind(&AlertLayer::Impl::HandleGeoLinesEvent,
|
std::bind(&AlertLayer::Impl::HandleGeoLinesEvent,
|
||||||
|
|
@ -694,7 +694,7 @@ void AlertLayer::Impl::UpdateLines()
|
||||||
void AlertLayer::Impl::HandleGeoLinesEvent(
|
void AlertLayer::Impl::HandleGeoLinesEvent(
|
||||||
std::weak_ptr<gl::draw::GeoLineDrawItem>& diWeak, QEvent* ev)
|
std::weak_ptr<gl::draw::GeoLineDrawItem>& diWeak, QEvent* ev)
|
||||||
{
|
{
|
||||||
std::shared_ptr<gl::draw::GeoLineDrawItem> di = diWeak.lock();
|
const std::shared_ptr<gl::draw::GeoLineDrawItem> di = diWeak.lock();
|
||||||
if (di == nullptr)
|
if (di == nullptr)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue