mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:50:06 +00:00
use referance to avoid unnecessary copy
This commit is contained in:
parent
9730ae581b
commit
ad10e019fe
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ namespace types
|
|||
|
||||
struct MarkerInfo
|
||||
{
|
||||
MarkerInfo(std::string name, double latitude, double longitude) :
|
||||
MarkerInfo(const std::string& name, double latitude, double longitude) :
|
||||
name {name}, latitude {latitude}, longitude {longitude}
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue