clang-tidy: performance-unnecessary-value-param

This commit is contained in:
prisixia 2023-05-05 14:10:52 +02:00
parent 3324118cea
commit e50bb2bd80
Signed by: prisixia
GPG Key ID: CB939A148C9B4125
17 changed files with 129 additions and 122 deletions

View File

@ -37,7 +37,7 @@ along with speciesgen. If not, see <https://www.gnu.org/licenses/>.
namespace SpeciesGen {
class ErrorHandler {
public:
ErrorHandler(const std::string = "ErrorHandler");
ErrorHandler(const std::string & = "ErrorHandler");
virtual size_t CheckForErrors() = 0;
virtual std::string GetError(const size_t);
virtual void ClearErrors();

View File

@ -55,7 +55,7 @@ enum {
class MainPanel : public wxPanel, public ErrorHandler {
public:
MainPanel(wxWindow *, int, int, int, int, const std::string);
MainPanel(wxWindow *, int, int, int, int, const std::string &);
#if wxUSE_CLIPBOARD
// bool HasSelection() const;

View File

@ -66,7 +66,7 @@ enum {
class StagesPanel : public wxPanel, public ErrorHandler {
public:
StagesPanel(wxWindow *, int, int, int, int, const std::string);
StagesPanel(wxWindow *, int, int, int, int, const std::string &);
void DoAddWeightStage(Starpounds::WeightStage = Starpounds::WeightStage(
"new", "New", "Chest description.",
Starpounds::Types::Chests::Belly,

View File

@ -44,7 +44,7 @@ namespace Starbound::Frames {
class Grid {
public:
Grid() = delete;
Grid(const std::vector<std::vector<std::optional<std::string>>>,
Grid(const std::vector<std::vector<std::optional<std::string>>> &,
const std::tuple<uint32_t, uint32_t> = {129, 129},
const std::tuple<uint32_t, uint32_t> = {9, 6});
std::tuple<uint32_t, uint32_t> GetSize() const;
@ -53,7 +53,7 @@ public:
void SetSize(const std::tuple<uint32_t, uint32_t>);
void SetDimensions(const std::tuple<uint32_t, uint32_t>);
void SetNames(const std::vector<std::vector<std::optional<std::string>>>);
void SetNames(const std::vector<std::vector<std::optional<std::string>>> &);
private:
std::tuple<uint32_t, uint32_t> m_size;
@ -64,12 +64,12 @@ private:
class Frames {
public:
Frames() = delete;
Frames(const std::unordered_map<std::string, std::string>, const Grid);
Frames(const std::unordered_map<std::string, std::string> &, const Grid &);
std::unordered_map<std::string, std::string> GetAliases() const;
Grid GetGrid() const;
void SetAliases(const std::unordered_map<std::string, std::string>);
void SetGrid(const Grid);
void SetAliases(const std::unordered_map<std::string, std::string> &);
void SetGrid(const Grid &);
private:
std::unordered_map<std::string, std::string> m_aliases;

View File

@ -54,17 +54,17 @@ enum class TooltipKind { Armor = 0 };
class Frames {
public:
Frames() = default;
Frames(const std::filesystem::path);
Frames(const std::filesystem::path, const std::filesystem::path,
const std::filesystem::path);
Frames(const std::filesystem::path &);
Frames(const std::filesystem::path &, const std::filesystem::path &,
const std::filesystem::path &);
std::filesystem::path GetBody() const;
std::filesystem::path GetBackSleeve() const;
std::filesystem::path GetFrontSleeve() const;
void SetBody(const std::filesystem::path);
void SetBackSleeve(const std::filesystem::path);
void SetFrontSleeve(const std::filesystem::path);
void SetBody(const std::filesystem::path &);
void SetBackSleeve(const std::filesystem::path &);
void SetFrontSleeve(const std::filesystem::path &);
private:
std::filesystem::path m_body;
@ -75,9 +75,10 @@ private:
class Item {
public:
Item() = default;
Item(const std::string, const Rarity);
Item(const std::string, const std::filesystem::path, const Category,
const std::string, const std::string, const Frames, const Frames);
Item(const std::string &, const Rarity);
Item(const std::string &, const std::filesystem::path &, const Category,
const std::string &, const std::string &, const Frames &,
const Frames &);
std::string GetItemName() const;
uint32_t GetPrice() const;
@ -91,17 +92,17 @@ public:
Frames GetMaleFrames() const;
Frames GetFemaleFrames() const;
void SetItemName(const std::string);
void SetItemName(const std::string &);
void SetPrice(const uint32_t);
void SetInventoryIcon(const std::filesystem::path);
void SetInventoryIcon(const std::filesystem::path &);
void SetMaxStack(const uint16_t);
void SetRarity(const Rarity);
void SetCategory(const Category);
void SetDescription(const std::string);
void SetShortDescription(const std::string);
void SetDescription(const std::string &);
void SetShortDescription(const std::string &);
void SetTooltipKind(const TooltipKind);
void SetMaleFrames(const Frames);
void SetFemaleFrames(const Frames);
void SetMaleFrames(const Frames &);
void SetFemaleFrames(const Frames &);
private:
std::string m_itemName;
@ -124,7 +125,8 @@ private:
namespace cereal {
template <class Archive>
static void load_and_construct(Archive &archive, construct<Starbound::Item::Frames> &construct) {
static void load_and_construct(Archive &archive,
construct<Starbound::Item::Frames> &construct) {
std::filesystem::path body;
std::filesystem::path backSleeve;
std::filesystem::path frontSleeve;

View File

@ -41,12 +41,12 @@ namespace Starbound {
class Metadata {
public:
Metadata() = default;
Metadata(const std::string, const std::string, const std::string,
const std::string =
Metadata(const std::string &, const std::string &, const std::string &,
const std::string & =
"This mod has been generated via speciesgen made by prisixia.",
const std::string = "1.0.0_gen" SPECIESGEN_VERSION,
const std::string = "http://git.vern.cc/prisixia/speciesgen",
const std::vector<std::string> = {"starpounds"});
const std::string & = "1.0.0_gen" SPECIESGEN_VERSION,
const std::string & = "http://git.vern.cc/prisixia/speciesgen",
const std::vector<std::string> & = {"starpounds"});
std::string GetName() const;
std::string GetFriendlyName() const;
@ -60,16 +60,16 @@ public:
std::vector<std::string> GetRequires() const;
uint32_t GetPriority() const;
void SetName(const std::string);
void SetFriendlyName(const std::string);
void SetDescription(const std::string);
void SetAuthor(const std::string);
void SetVersion(const std::string);
void SetLink(const std::string);
void SetSteamContentID(const std::string);
void SetTags(const std::string);
void SetIncludes(const std::vector<std::string>);
void SetRequires(const std::vector<std::string>);
void SetName(const std::string &);
void SetFriendlyName(const std::string &);
void SetDescription(const std::string &);
void SetAuthor(const std::string &);
void SetVersion(const std::string &);
void SetLink(const std::string &);
void SetSteamContentID(const std::string &);
void SetTags(const std::string &);
void SetIncludes(const std::vector<std::string> &);
void SetRequires(const std::vector<std::string> &);
void SetPriority(const uint32_t);
private:

View File

@ -51,16 +51,16 @@ template <typename Value = std::string> class Patch {
public:
Patch() = delete;
Patch(std::filesystem::path path, Operation op = Operation::Add)
: m_op(op), m_path(path) {}
: m_op(op), m_path(std::move(path)) {}
Patch(std::filesystem::path path, Value value,
Operation op = Operation::Add)
: m_op(op), m_path(path), m_value(value) {}
: m_op(op), m_path(std::move(path)), m_value(value) {}
Operation GetOperation() const { return m_op; }
std::filesystem::path GetPath() const { return m_path; }
Value GetValue() const { return m_value; }
void SetOperation(const Operation op) { m_op = op; }
void SetPath(const std::filesystem::path path) { m_path = path; }
void SetPath(const std::filesystem::path &path) { m_path = path; }
void SetValue(const Value value) { m_value = value; }
private:

View File

@ -39,16 +39,16 @@ namespace Starpounds {
class SpeciesConfig {
public:
SpeciesConfig(const bool = false);
SpeciesConfig(const std::string, const bool = false);
SpeciesConfig(const std::string, const std::string, const bool = false);
SpeciesConfig(const std::string &, const bool = false);
SpeciesConfig(const std::string &, const std::string &, const bool = false);
bool GetFullbright() const;
std::string GetOverride() const;
std::string GetOverrideDirectives() const;
void SetFullbright(const bool);
void SetOverride(const std::string);
void SetOverrideDirectives(const std::string);
void SetOverride(const std::string &);
void SetOverrideDirectives(const std::string &);
private:
bool m_fullbright;

View File

@ -43,18 +43,18 @@ namespace Starpounds {
class WeightStageSub {
public:
WeightStageSub() = default;
WeightStageSub(const std::string, const std::string, const std::string,
const Types::Chests);
WeightStageSub(const std::string);
WeightStageSub(const Types::Subs, const std::string);
WeightStageSub(const std::string &, const std::string &,
const std::string &, const Types::Chests);
WeightStageSub(const std::string &);
WeightStageSub(const Types::Subs, const std::string &);
std::string GetName() const;
std::string GetFriendlyName() const;
std::string GetChestDescription() const;
Types::Chests GetChestType() const;
void SetName(const std::string);
void SetFriendlyName(const std::string);
void SetChestDescription(const std::string);
void SetName(const std::string &);
void SetFriendlyName(const std::string &);
void SetChestDescription(const std::string &);
void SetChestType(const Types::Chests);
protected:
@ -67,22 +67,23 @@ protected:
class WeightStage : public WeightStageSub {
public:
WeightStage() = default;
WeightStage(const std::string, const std::string, const std::string,
const Types::Chests, const std::string, const Types::Legs,
const bool, const bool, const std::vector<WeightStageSub> = {});
WeightStage(const std::string, const bool, const bool,
const std::vector<WeightStageSub> = {});
WeightStage(const std::string &, const std::string &, const std::string &,
const Types::Chests, const std::string &, const Types::Legs,
const bool, const bool,
const std::vector<WeightStageSub> & = {});
WeightStage(const std::string &, const bool, const bool,
const std::vector<WeightStageSub> & = {});
std::string GetLegDescription() const;
Types::Legs GetLegType() const;
bool HasFrames() const;
bool HasID() const;
std::vector<WeightStageSub> GetSubs() const;
void SetLegDescription(const std::string);
void SetLegDescription(const std::string &);
void SetLegType(const Types::Legs);
void SetFrames(const bool);
void SetID(const bool);
void SetSubs(const std::vector<WeightStageSub>);
void SetSubs(const std::vector<WeightStageSub> &);
private:
std::string m_descriptionLeg;

View File

@ -26,7 +26,7 @@ namespace SpeciesGen {
// ErrorHandler
//----------------------------------------------------------------------
ErrorHandler::ErrorHandler(const std::string handlerName)
ErrorHandler::ErrorHandler(const std::string &handlerName)
: m_handlerName(handlerName) {}
std::string ErrorHandler::GetError(const size_t index) {

View File

@ -29,7 +29,7 @@ wxBEGIN_EVENT_TABLE(MainPanel, wxPanel)
wxEND_EVENT_TABLE()
MainPanel::MainPanel(wxWindow *window, int x, int y, int w, int h,
const std::string handlerName)
const std::string &handlerName)
: wxPanel(window, wxID_ANY, wxPoint(x, y), wxSize(w, h)),
ErrorHandler(handlerName) {
wxBoxSizer *column1 = new wxBoxSizer(wxVERTICAL);

View File

@ -36,7 +36,7 @@ wxBEGIN_EVENT_TABLE(StagesPanel, wxPanel)
wxEND_EVENT_TABLE()
StagesPanel::StagesPanel(wxWindow *window, int x, int y, int w, int h,
const std::string handlerName)
const std::string &handlerName)
: wxPanel(window, wxID_ANY, wxPoint(x, y), wxSize(w, h)),
ErrorHandler(handlerName) {
wxBoxSizer *row1 = new wxBoxSizer(wxHORIZONTAL);

View File

@ -26,7 +26,7 @@ namespace Starbound::Frames {
// Grid
//----------------------------------------------------------------------
Grid::Grid(const std::vector<std::vector<std::optional<std::string>>> names,
Grid::Grid(const std::vector<std::vector<std::optional<std::string>>> &names,
const std::tuple<uint32_t, uint32_t> size,
const std::tuple<uint32_t, uint32_t> dimensions)
: m_size(size), m_dimensions(dimensions), m_names(names) {}
@ -48,7 +48,7 @@ void Grid::SetDimensions(const std::tuple<uint32_t, uint32_t> dimensions) {
}
void Grid::SetNames(
const std::vector<std::vector<std::optional<std::string>>> names) {
const std::vector<std::vector<std::optional<std::string>>> &names) {
m_names = names;
}
@ -56,8 +56,8 @@ void Grid::SetNames(
// Frames
//----------------------------------------------------------------------
Frames::Frames(const std::unordered_map<std::string, std::string> aliases,
const Grid grid)
Frames::Frames(const std::unordered_map<std::string, std::string> &aliases,
const Grid &grid)
: m_aliases(aliases), m_grid(grid) {}
std::unordered_map<std::string, std::string> Frames::GetAliases() const {
@ -67,9 +67,9 @@ std::unordered_map<std::string, std::string> Frames::GetAliases() const {
Grid Frames::GetGrid() const { return m_grid; }
void Frames::SetAliases(
const std::unordered_map<std::string, std::string> aliases) {
const std::unordered_map<std::string, std::string> &aliases) {
m_aliases = aliases;
}
void Frames::SetGrid(const Grid grid) { m_grid = grid; }
void Frames::SetGrid(const Grid &grid) { m_grid = grid; }
} // namespace Starbound::Frames

View File

@ -26,11 +26,11 @@ namespace Starbound::Item {
// Frames
//----------------------------------------------------------------------
Frames::Frames(const std::filesystem::path body) : m_body(body) {}
Frames::Frames(const std::filesystem::path &body) : m_body(body) {}
Frames::Frames(const std::filesystem::path body,
const std::filesystem::path backSleeve,
const std::filesystem::path frontSleeve)
Frames::Frames(const std::filesystem::path &body,
const std::filesystem::path &backSleeve,
const std::filesystem::path &frontSleeve)
: m_body(body), m_backSleeve(backSleeve), m_frontSleeve(frontSleeve) {}
std::filesystem::path Frames::GetBody() const { return m_body; }
@ -39,13 +39,13 @@ std::filesystem::path Frames::GetBackSleeve() const { return m_backSleeve; }
std::filesystem::path Frames::GetFrontSleeve() const { return m_frontSleeve; }
void Frames::SetBody(const std::filesystem::path body) { m_body = body; }
void Frames::SetBody(const std::filesystem::path &body) { m_body = body; }
void Frames::SetBackSleeve(const std::filesystem::path backSleeve) {
void Frames::SetBackSleeve(const std::filesystem::path &backSleeve) {
m_backSleeve = backSleeve;
}
void Frames::SetFrontSleeve(const std::filesystem::path frontSleeve) {
void Frames::SetFrontSleeve(const std::filesystem::path &frontSleeve) {
m_frontSleeve = frontSleeve;
}
@ -53,13 +53,13 @@ void Frames::SetFrontSleeve(const std::filesystem::path frontSleeve) {
// Item
//----------------------------------------------------------------------
Item::Item(const std::string itemName, const Rarity rarity)
Item::Item(const std::string &itemName, const Rarity rarity)
: m_itemName(itemName), m_price(0), m_maxStack(1), m_rarity(rarity) {}
Item::Item(const std::string itemName,
const std::filesystem::path inventoryIcon, const Category category,
const std::string description, const std::string shortDescription,
const Frames maleFrames, const Frames femaleFrames)
Item::Item(const std::string &itemName,
const std::filesystem::path &inventoryIcon, const Category category,
const std::string &description, const std::string &shortDescription,
const Frames &maleFrames, const Frames &femaleFrames)
: m_itemName(itemName), m_price(0), m_inventoryIcon(inventoryIcon),
m_maxStack(1), m_rarity(Rarity::Essential), m_category(category),
m_description(description), m_shortDescription(shortDescription),
@ -88,11 +88,11 @@ Frames Item::GetMaleFrames() const { return m_maleFrames; }
Frames Item::GetFemaleFrames() const { return m_femaleFrames; }
void Item::SetItemName(const std::string itemName) { m_itemName = itemName; }
void Item::SetItemName(const std::string &itemName) { m_itemName = itemName; }
void Item::SetPrice(const uint32_t price) { m_price = price; }
void Item::SetInventoryIcon(const std::filesystem::path inventoryIcon) {
void Item::SetInventoryIcon(const std::filesystem::path &inventoryIcon) {
m_inventoryIcon = inventoryIcon;
}
@ -102,11 +102,11 @@ void Item::SetRarity(const Rarity rarity) { m_rarity = rarity; }
void Item::SetCategory(const Category category) { m_category = category; }
void Item::SetDescription(const std::string description) {
void Item::SetDescription(const std::string &description) {
m_description = description;
}
void Item::SetShortDescription(const std::string shortDescription) {
void Item::SetShortDescription(const std::string &shortDescription) {
m_shortDescription = shortDescription;
}
@ -114,9 +114,11 @@ void Item::SetTooltipKind(const TooltipKind tooltipKind) {
m_tooltipKind = tooltipKind;
}
void Item::SetMaleFrames(const Frames maleFrames) { m_maleFrames = maleFrames; }
void Item::SetMaleFrames(const Frames &maleFrames) {
m_maleFrames = maleFrames;
}
void Item::SetFemaleFrames(const Frames femaleFrames) {
void Item::SetFemaleFrames(const Frames &femaleFrames) {
m_femaleFrames = femaleFrames;
}
} // namespace Starbound::Item

View File

@ -26,10 +26,10 @@ namespace Starbound {
// Metadata
//----------------------------------------------------------------------
Metadata::Metadata(const std::string name, const std::string friendlyName,
const std::string author, const std::string description,
const std::string version, const std::string link,
const std::vector<std::string> _requires)
Metadata::Metadata(const std::string &name, const std::string &friendlyName,
const std::string &author, const std::string &description,
const std::string &version, const std::string &link,
const std::vector<std::string> &_requires)
: m_name(name), m_friendlyName(friendlyName), m_author(author),
m_description(description), m_version(version), m_link(link),
m_requires(_requires), m_priority(0) {}
@ -56,33 +56,33 @@ std::vector<std::string> Metadata::GetRequires() const { return m_requires; }
uint32_t Metadata::GetPriority() const { return m_priority; }
void Metadata::SetName(const std::string name) { m_name = name; }
void Metadata::SetName(const std::string &name) { m_name = name; }
void Metadata::SetFriendlyName(const std::string friendlyName) {
void Metadata::SetFriendlyName(const std::string &friendlyName) {
m_friendlyName = friendlyName;
}
void Metadata::SetDescription(const std::string description) {
void Metadata::SetDescription(const std::string &description) {
m_description = description;
}
void Metadata::SetAuthor(const std::string author) { m_author = author; }
void Metadata::SetAuthor(const std::string &author) { m_author = author; }
void Metadata::SetVersion(const std::string version) { m_version = version; }
void Metadata::SetVersion(const std::string &version) { m_version = version; }
void Metadata::SetLink(const std::string link) { m_link = link; }
void Metadata::SetLink(const std::string &link) { m_link = link; }
void Metadata::SetSteamContentID(const std::string steamContentId) {
void Metadata::SetSteamContentID(const std::string &steamContentId) {
m_steamContentId = steamContentId;
}
void Metadata::SetTags(const std::string tags) { m_tags = tags; }
void Metadata::SetTags(const std::string &tags) { m_tags = tags; }
void Metadata::SetIncludes(const std::vector<std::string> includes) {
void Metadata::SetIncludes(const std::vector<std::string> &includes) {
m_includes = includes;
}
void Metadata::SetRequires(const std::vector<std::string> _requires) {
void Metadata::SetRequires(const std::vector<std::string> &_requires) {
m_requires = _requires;
}

View File

@ -23,10 +23,11 @@ along with speciesgen. If not, see <https://www.gnu.org/licenses/>.
namespace Starpounds {
SpeciesConfig::SpeciesConfig(const bool fullbright)
: m_fullbright(fullbright) {}
SpeciesConfig::SpeciesConfig(const std::string _override, const bool fullbright)
SpeciesConfig::SpeciesConfig(const std::string &_override,
const bool fullbright)
: m_fullbright(fullbright), m_override(_override) {}
SpeciesConfig::SpeciesConfig(const std::string _override,
const std::string overrideDirectives,
SpeciesConfig::SpeciesConfig(const std::string &_override,
const std::string &overrideDirectives,
const bool fullbright)
: m_fullbright(fullbright), m_override(_override),
m_overrideDirectives(overrideDirectives) {}
@ -40,11 +41,11 @@ std::string SpeciesConfig::GetOverrideDirectives() const {
void SpeciesConfig::SetFullbright(const bool fullbright) {
m_fullbright = fullbright;
}
void SpeciesConfig::SetOverride(const std::string _override) {
void SpeciesConfig::SetOverride(const std::string &_override) {
m_override = _override;
}
void SpeciesConfig::SetOverrideDirectives(
const std::string overrideDirectives) {
const std::string &overrideDirectives) {
m_overrideDirectives = overrideDirectives;
}
} // namespace Starpounds

View File

@ -26,18 +26,18 @@ namespace Starpounds {
// WeightStageSub
//----------------------------------------------------------------------
WeightStageSub::WeightStageSub(const std::string name,
const std::string friendlyName,
const std::string descriptionChest,
WeightStageSub::WeightStageSub(const std::string &name,
const std::string &friendlyName,
const std::string &descriptionChest,
const Types::Chests typeChest)
: m_name(name), m_friendlyName(friendlyName),
m_descriptionChest(descriptionChest), m_typeChest(typeChest) {}
WeightStageSub::WeightStageSub(const std::string name)
WeightStageSub::WeightStageSub(const std::string &name)
: m_name(name), m_typeChest(Types::Chests::Chest) {}
WeightStageSub::WeightStageSub(const Types::Subs type,
const std::string descriptionChest)
const std::string &descriptionChest)
: m_name(Types::AsString(type)), m_friendlyName(Types::AsFriendly(type)),
m_descriptionChest(descriptionChest), m_typeChest(Types::AsChest(type)) {}
@ -51,13 +51,13 @@ std::string WeightStageSub::GetChestDescription() const {
Types::Chests WeightStageSub::GetChestType() const { return m_typeChest; }
void WeightStageSub::SetName(const std::string name) { m_name = name; }
void WeightStageSub::SetName(const std::string &name) { m_name = name; }
void WeightStageSub::SetFriendlyName(const std::string friendlyName) {
void WeightStageSub::SetFriendlyName(const std::string &friendlyName) {
m_friendlyName = friendlyName;
}
void WeightStageSub::SetChestDescription(const std::string descriptionChest) {
void WeightStageSub::SetChestDescription(const std::string &descriptionChest) {
m_descriptionChest = descriptionChest;
}
@ -69,18 +69,19 @@ void WeightStageSub::SetChestType(const Types::Chests typeChest) {
// WeightStage
//----------------------------------------------------------------------
WeightStage::WeightStage(const std::string name, const std::string friendlyName,
const std::string descriptionChest,
WeightStage::WeightStage(const std::string &name,
const std::string &friendlyName,
const std::string &descriptionChest,
const Types::Chests typeChest,
const std::string descriptionLeg,
const std::string &descriptionLeg,
const Types::Legs typeLeg, const bool frames,
const bool id, const std::vector<WeightStageSub> subs)
const bool id, const std::vector<WeightStageSub> &subs)
: WeightStageSub(name, friendlyName, descriptionChest, typeChest),
m_descriptionLeg(descriptionLeg), m_typeLeg(typeLeg), m_frames(frames),
m_id(id), m_subs(subs) {}
WeightStage::WeightStage(const std::string name, const bool frames,
const bool id, const std::vector<WeightStageSub> subs)
WeightStage::WeightStage(const std::string &name, const bool frames,
const bool id, const std::vector<WeightStageSub> &subs)
: WeightStageSub(name), m_typeLeg(Types::Legs::Legs), m_frames(frames),
m_id(id), m_subs(subs) {}
@ -94,7 +95,7 @@ bool WeightStage::HasID() const { return m_id; }
std::vector<WeightStageSub> WeightStage::GetSubs() const { return m_subs; }
void WeightStage::SetLegDescription(const std::string descriptionLeg) {
void WeightStage::SetLegDescription(const std::string &descriptionLeg) {
m_descriptionLeg = descriptionLeg;
}
@ -104,7 +105,7 @@ void WeightStage::SetFrames(const bool frames) { m_frames = frames; }
void WeightStage::SetID(const bool id) { m_id = id; }
void WeightStage::SetSubs(const std::vector<WeightStageSub> subs) {
void WeightStage::SetSubs(const std::vector<WeightStageSub> &subs) {
m_subs = subs;
}
} // namespace Starpounds