mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Remove unnecessary object creation in emplace_front
Fixes ``` /home/chiller/Desktop/git/ddnet/src/engine/client/updater.cpp:186:27: error: unnecessary temporary object created while calling emplace_front [modernize-use-emplace,-warnings-as-errors] 186 | m_FileJobs.emplace_front(std::make_pair(pFile, Job)); | ^~~~~~~~~~~~~~~ ~ ```
This commit is contained in:
parent
5ad62b5732
commit
c4f68f50ea
|
@ -183,7 +183,7 @@ void CUpdater::Update()
|
|||
|
||||
void CUpdater::AddFileJob(const char *pFile, bool Job)
|
||||
{
|
||||
m_FileJobs.emplace_front(std::make_pair(pFile, Job));
|
||||
m_FileJobs.emplace_front(pFile, Job);
|
||||
}
|
||||
|
||||
bool CUpdater::ReplaceClient()
|
||||
|
|
|
@ -8475,8 +8475,8 @@ void CEditor::OnMouseMove(float MouseX, float MouseY)
|
|||
continue;
|
||||
CTile Tile = pTiles->GetTile(x, y);
|
||||
if(Tile.m_Index)
|
||||
m_vHoverTiles.emplace_back(CHoverTile(
|
||||
g, l, x, y, Tile));
|
||||
m_vHoverTiles.emplace_back(
|
||||
g, l, x, y, Tile);
|
||||
}
|
||||
}
|
||||
Ui()->MapScreen();
|
||||
|
|
Loading…
Reference in a new issue