[epiphany] session: Code style improvements
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] session: Code style improvements
- Date: Mon, 17 Oct 2016 11:57:41 +0000 (UTC)
commit 938e78a4e6a92485136c6109f9c886261ef8a4f1
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Oct 17 06:57:18 2016 -0500
session: Code style improvements
src/ephy-session.c | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index d1b424a..c51ab73 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -827,31 +827,38 @@ save_session_sync (GTask *task,
buffer = xmlBufferCreate ();
writer = xmlNewTextWriterMemory (buffer, 0);
- if (writer == NULL) goto out;
+ if (writer == NULL)
+ goto out;
ret = xmlTextWriterSetIndent (writer, 1);
- if (ret < 0) goto out;
+ if (ret < 0)
+ goto out;
ret = xmlTextWriterSetIndentString (writer, (const xmlChar *)" ");
- if (ret < 0) goto out;
+ if (ret < 0)
+ goto out;
START_PROFILER ("Saving session")
ret = xmlTextWriterStartDocument (writer, "1.0", NULL, NULL);
- if (ret < 0) goto out;
+ if (ret < 0)
+ goto out;
/* create and set the root node for the session */
ret = xmlTextWriterStartElement (writer, (const xmlChar *)"session");
- if (ret < 0) goto out;
+ if (ret < 0)
+ goto out;
/* iterate through all the windows */
for (w = data->windows; w != NULL && ret >= 0; w = w->next) {
ret = write_ephy_window (writer, (SessionWindow *)w->data);
}
- if (ret < 0) goto out;
+ if (ret < 0)
+ goto out;
ret = xmlTextWriterEndElement (writer); /* session */
- if (ret < 0) goto out;
+ if (ret < 0)
+ goto out;
ret = xmlTextWriterEndDocument (writer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]