mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Change tabs to two spaces.
This commit is contained in:
+18
-18
@@ -14,31 +14,31 @@
|
||||
|
||||
template <>
|
||||
VCSP read_new<VCS>(Reader& reader) {
|
||||
// there must be a type specified
|
||||
String type;
|
||||
reader.handle(_("type"), type);
|
||||
if (type == _("none")) return intrusive(new VCS);
|
||||
else if (type == _("subversion")) return intrusive(new SubversionVCS);
|
||||
else if (type.empty()) {
|
||||
reader.warning(_ERROR_1_("expected key", _("version control system")));
|
||||
throw ParseError(_ERROR_("aborting parsing"));
|
||||
} else {
|
||||
reader.warning(format_string(_("Unsupported version control type: '%s'"), type));
|
||||
throw ParseError(_ERROR_("aborting parsing"));
|
||||
}
|
||||
// there must be a type specified
|
||||
String type;
|
||||
reader.handle(_("type"), type);
|
||||
if (type == _("none")) return intrusive(new VCS);
|
||||
else if (type == _("subversion")) return intrusive(new SubversionVCS);
|
||||
else if (type.empty()) {
|
||||
reader.warning(_ERROR_1_("expected key", _("version control system")));
|
||||
throw ParseError(_ERROR_("aborting parsing"));
|
||||
} else {
|
||||
reader.warning(format_string(_("Unsupported version control type: '%s'"), type));
|
||||
throw ParseError(_ERROR_("aborting parsing"));
|
||||
}
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION(VCS) {
|
||||
REFLECT_IF_NOT_READING {
|
||||
String type = _("none");
|
||||
REFLECT(type);
|
||||
}
|
||||
REFLECT_IF_NOT_READING {
|
||||
String type = _("none");
|
||||
REFLECT(type);
|
||||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
void Reader::handle(VCSP& pointer) {
|
||||
pointer = read_new<VCS>(*this);
|
||||
handle(*pointer);
|
||||
pointer = read_new<VCS>(*this);
|
||||
handle(*pointer);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
|
||||
Reference in New Issue
Block a user