From: Reynaldo H. Verdejo Pinochet Date: Mon, 23 Jan 2017 21:49:36 +0000 (-0800) Subject: design: standards: drop manual padding of code fragments X-Git-Tag: 1.19.3~489^2~375 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=043ea99c2eb02afb27ae9720b73f19a2b03c271e;p=platform%2Fupstream%2Fgstreamer.git design: standards: drop manual padding of code fragments --- diff --git a/markdown/design/standards.md b/markdown/design/standards.md index 4a64008..a462d28 100644 --- a/markdown/design/standards.md +++ b/markdown/design/standards.md @@ -16,9 +16,9 @@ caller. ex: ``` c - name = gst_element_get_name (element); /* copy of name is made */ - .. use name .. - g_free (name); /* free after usage */ +name = gst_element_get_name (element); /* copy of name is made */ +.. use name .. +g_free (name); /* free after usage */ ``` ## Objects @@ -33,11 +33,11 @@ that the caller should `_free()` or `_unref()` the objects after usage. ex: ``` c - peer = gst_pad_get_peer (pad); /* peer with increased refcount */ - if (peer) { - .. use peer .. - gst_object_unref (GST_OBJECT (peer)); /* unref peer after usage */ - } +peer = gst_pad_get_peer (pad); /* peer with increased refcount */ +if (peer) { + .. use peer .. + gst_object_unref (GST_OBJECT (peer)); /* unref peer after usage */ +} ``` ## Iterators