aboutsummaryrefslogtreecommitdiff
path: root/docs/devel
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-10-02 22:54:22 -0400
committerEduardo Habkost <ehabkost@redhat.com>2020-10-06 11:09:35 -0400
commitacc34c2144deb12d4f1968efb3fd64b40f5e1142 (patch)
treeaf54091b0f2dc72e32f7ed28e3e013738c48cbd0 /docs/devel
parent671b3db0562e3c24e6823b68747bc4be5a8e6d78 (diff)
downloadqemu-acc34c2144deb12d4f1968efb3fd64b40f5e1142.zip
qemu-acc34c2144deb12d4f1968efb3fd64b40f5e1142.tar.gz
qemu-acc34c2144deb12d4f1968efb3fd64b40f5e1142.tar.bz2
docs/devel/qom: Use *emphasis* for emphasis
<emphasis> is not valid reST syntax. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20201003025424.199291-5-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'docs/devel')
-rw-r--r--docs/devel/qom.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
index a47e1b9..0c610e2 100644
--- a/docs/devel/qom.rst
+++ b/docs/devel/qom.rst
@@ -174,17 +174,17 @@ dynamically cast it to an object that implements the interface.
Methods
=======
-A <emphasis>method</emphasis> is a function within the namespace scope of
+A *method* is a function within the namespace scope of
a class. It usually operates on the object instance by passing it as a
strongly-typed first argument.
If it does not operate on an object instance, it is dubbed
-<emphasis>class method</emphasis>.
+*class method*.
Methods cannot be overloaded. That is, the #ObjectClass and method name
uniquely identity the function to be called; the signature does not vary
except for trailing varargs.
-Methods are always <emphasis>virtual</emphasis>. Overriding a method in
+Methods are always *virtual*. Overriding a method in
#TypeInfo.class_init of a subclass leads to any user of the class obtained
via OBJECT_GET_CLASS() accessing the overridden function.
The original function is not automatically invoked. It is the responsibility