[gxml/gsoc2013] examples/c: fix some whitespace
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gsoc2013] examples/c: fix some whitespace
- Date: Sun, 28 Jul 2013 05:34:40 +0000 (UTC)
commit 69f18f1980a970347d69e9b3a176524954dcf221
Author: Richard Schwarting <aquarichy gmail com>
Date: Sun Jul 28 01:30:12 2013 -0400
examples/c: fix some whitespace
examples/c/document_create.c | 2 +-
examples/c/document_create_from_file.c | 4 ++--
examples/c/document_create_from_path.c | 2 +-
examples/c/document_properties.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/examples/c/document_create.c b/examples/c/document_create.c
index 7020029..0727af4 100644
--- a/examples/c/document_create.c
+++ b/examples/c/document_create.c
@@ -45,7 +45,7 @@ int main () {
printf ("%s:\n%s\n", __FILE__, str);
g_free (str);
- g_object_unref (doc);
+ g_object_unref (doc);
g_object_unref (root); // TODO: figure out what happens to root if you deallocate doc?! */
// TODO: perhaps see whether we can make it that all the nodes that are returned are weak references
g_object_unref (owner);
diff --git a/examples/c/document_create_from_file.c b/examples/c/document_create_from_file.c
index 86d99ec..86c47eb 100644
--- a/examples/c/document_create_from_file.c
+++ b/examples/c/document_create_from_file.c
@@ -15,8 +15,8 @@ int main () {
g_free (str);
g_object_unref (doc);
- // TODO: how do you free a GFile? g_object_unref ()?
-
+ // TODO: how do you free a GFile? g_object_unref ()?
+
return 0;
}
diff --git a/examples/c/document_create_from_path.c b/examples/c/document_create_from_path.c
index a869d39..3271642 100644
--- a/examples/c/document_create_from_path.c
+++ b/examples/c/document_create_from_path.c
@@ -5,7 +5,7 @@ int main () {
GXmlDocument *doc;
char *str;
- doc = gxml_document_new_from_path ("bookshelf.xml");
+ doc = gxml_document_new_from_path ("bookshelf.xml");
str = gxml_node_to_string (GXML_NODE (doc), TRUE, 2);
printf ("%s:\n%s\n", __FILE__, str);
g_free (str);
diff --git a/examples/c/document_properties.c b/examples/c/document_properties.c
index da3ee18..d3d9faa 100644
--- a/examples/c/document_properties.c
+++ b/examples/c/document_properties.c
@@ -29,7 +29,7 @@ int main () {
root = gxml_document_get_document_element (doc);
root_node_name = gxml_node_get_node_name (GXML_NODE (root));
- printf ("Document has root element with name: %s (should be Bookshelf)\n", root_node_name);
+ printf ("Document has root element with name: %s (should be Bookshelf)\n", root_node_name);
g_object_unref (doc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]