@@ -238,7 +238,7 @@ namespace RTE {
238238 // / @param objPos The very short description of what the objective is (three short words max)
239239 // / @param whichTeam The absolute scene coordiante position of the objective. (default: Teams::TeamOne)
240240 // / @param arrowDir The desired direction of the arrow when the point is on screen. (default: ARROWDOWN)
241- void AddObjectivePoint (std::string description, Vector objPos, int whichTeam = Teams::TeamOne, ObjectiveArrowDir arrowDir = ARROWDOWN);
241+ void AddObjectivePoint (const std::string& description, Vector objPos, int whichTeam = Teams::TeamOne, ObjectiveArrowDir arrowDir = ARROWDOWN);
242242
243243 // / Sorts all objective points according to their positions on the Y axis.
244244 void YSortObjectivePoints ();
@@ -265,7 +265,7 @@ namespace RTE {
265265 // / @param loadoutName The name of the Loadout preset to set the override purchase list to
266266 // / represent.
267267 // / @return The new total value of what's in the override purchase list.
268- int SetOverridePurchaseList (std::string loadoutName, int player);
268+ int SetOverridePurchaseList (const std::string& loadoutName, int player);
269269
270270 // / Clears all items from a specific player's override purchase list.
271271 // / @param m_PurchaseOverride[player].clear( Which player's override purchase list to clear.
@@ -352,7 +352,7 @@ namespace RTE {
352352
353353 // / Sets tech module name for specified team. Module must set must be loaded.
354354 // / @param team Team to set module, module name, for example Dummy.rte
355- void SetTeamTech (int team, std::string tech);
355+ void SetTeamTech (int team, const std::string& tech);
356356
357357 // / Indicates whether a specific team is assigned a CPU player in the current game.
358358 // / @param team Which team index to check.
@@ -448,7 +448,7 @@ namespace RTE {
448448 // / Returns network player name
449449 // / @param player Player
450450 // / @return Network player name
451- std::string& GetNetworkPlayerName (int player);
451+ const std::string& GetNetworkPlayerName (int player);
452452
453453 // / Sets network player name
454454 // / @param player Player number, player name
@@ -470,12 +470,13 @@ namespace RTE {
470470 m_Team = Teams::NoTeam;
471471 m_ArrowDir = ARROWDOWN;
472472 }
473- ObjectivePoint (const std::string& desc, const Vector& pos, int team = -1 , ObjectiveArrowDir arrowDir = ARROWDOWN) {
474- m_Description = desc;
475- m_ScenePos = pos;
476- m_Team = (Teams)team;
477- m_ArrowDir = arrowDir;
478- }
473+
474+ ObjectivePoint (std::string desc, const Vector& pos, int team = -1 , ObjectiveArrowDir arrowDir = ARROWDOWN) :
475+ m_Description (std::move(desc)),
476+ m_ScenePos (pos),
477+ m_Team ((Teams)team),
478+ m_ArrowDir (arrowDir)
479+ {}
479480
480481 // / Simply draws this' arrow relative to a point on a bitmap.
481482 // / @param pTargetBitmap A pointer to the BITMAP to draw on.
0 commit comments