aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-12-15 18:16:59 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:13 -0300
commit2175ccbcb773d345ebe16df6a89892a1b7101628 (patch)
tree2bd3c3f1b72878e9729535df4caf76adae6bc772
parent62e80ae1b79bd2cc63a4f969168edd544c7034a0 (diff)
Renamed the "define-ownership" tag "calss" attribute value from "shell" to "native".sb-0.9.1
This was done to keep consistency with the rest of the type system tag attributes, which use "native" instead of "c++" or "shell". Documentation was updated accordingly. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--doc/typesystem_arguments.rst2
-rw-r--r--typesystem.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/typesystem_arguments.rst b/doc/typesystem_arguments.rst
index 938214acb..94d48f4e1 100644
--- a/doc/typesystem_arguments.rst
+++ b/doc/typesystem_arguments.rst
@@ -122,7 +122,7 @@ define-ownership
.. code-block:: xml
<modify-argument>
- <define-ownership class="target | shell"
+ <define-ownership class="target | native"
owner="target | c++ | default" />
</modify-argument>
diff --git a/typesystem.cpp b/typesystem.cpp
index 7beb42f79..20ee8650f 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -1073,7 +1073,7 @@ bool Handler::startElement(const QString &, const QString &n,
static QHash<QString, TypeSystem::Language> languageNames;
if (languageNames.isEmpty()) {
languageNames["target"] = TypeSystem::TargetLangCode;
- languageNames["shell"] = TypeSystem::ShellCode;
+ languageNames["native"] = TypeSystem::NativeCode;
}
QString classAttribute = attributes["class"].toLower();