Reformat cStringChoice constructors
This commit is contained in:
@@ -19,22 +19,17 @@ static DialogDefn& loadDefn() {
|
||||
return *ResMgr::dialogs.get("choose-string");
|
||||
}
|
||||
|
||||
cStringChoice::cStringChoice(
|
||||
std::vector<std::string>& strs,
|
||||
std::string title,
|
||||
cDialog* parent
|
||||
) : dlg(loadDefn(),parent) {
|
||||
cStringChoice::cStringChoice(std::vector<std::string>& strs, std::string title, cDialog* parent)
|
||||
: dlg(loadDefn(),parent)
|
||||
{
|
||||
if(!title.empty()) dlg["title"].setText(title);
|
||||
strings = strs;
|
||||
attachHandlers();
|
||||
}
|
||||
|
||||
cStringChoice::cStringChoice(
|
||||
std::vector<std::string>::iterator begin,
|
||||
std::vector<std::string>::iterator end,
|
||||
std::string title,
|
||||
cDialog* parent
|
||||
) : dlg(loadDefn(),parent) {
|
||||
cStringChoice::cStringChoice(std::vector<std::string>::iterator begin, std::vector<std::string>::iterator end, std::string title, cDialog* parent)
|
||||
: dlg(loadDefn(),parent)
|
||||
{
|
||||
if(!title.empty()) dlg["title"].setText(title);
|
||||
copy(begin,end,std::inserter(strings, strings.begin()));
|
||||
attachHandlers();
|
||||
|
Reference in New Issue
Block a user