Setup attr.os-version as part of document scopes

While not exactly a document scope, the advantage is that document scopes are always set, where project scopes are only setup for “projects”.
This commit is contained in:
Allan Odgaard
2013-03-31 23:16:05 +07:00
parent c54360fce3
commit ea206ed269

View File

@@ -1066,7 +1066,6 @@ namespace
}
_projectScopeAttributes.clear();
_projectScopeAttributes.push_back(text::format("attr.os-version.%zu.%zu.%zu", oak::os_major(), oak::os_minor(), oak::os_patch()));
std::string const customAttributes = settings_for_path(NULL_STR, text::join(_projectScopeAttributes, " "), to_s(_projectPath)).get(kSettingsScopeAttributesKey, NULL_STR);
if(customAttributes != NULL_STR)
@@ -1085,7 +1084,7 @@ namespace
std::string docDirectory = _documentPath ? path::parent(to_s(_documentPath)) : to_s(self.projectPath);
_documentScopeAttributes.clear();
_documentScopeAttributes = { text::format("attr.os-version.%zu.%zu.%zu", oak::os_major(), oak::os_minor(), oak::os_patch()) };
if(_documentPath)
{
std::string const path = to_s(_documentPath);