gnome-terminal r2514 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2514 - trunk/src
- Date: Thu, 20 Mar 2008 10:15:48 +0000 (GMT)
Author: chpe
Date: Thu Mar 20 10:15:48 2008
New Revision: 2514
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2514&view=rev
Log:
No need for else after return.
Modified:
trunk/src/terminal-profile.c
Modified: trunk/src/terminal-profile.c
==============================================================================
--- trunk/src/terminal-profile.c (original)
+++ trunk/src/terminal-profile.c Thu Mar 20 10:15:48 2008
@@ -292,6 +292,8 @@
profile = TERMINAL_PROFILE (object);
priv = profile->priv;
+ g_assert (priv->name != NULL);
+
priv->profile_dir = gconf_concat_dir_and_key (CONF_PROFILES_PREFIX,
priv->name);
@@ -1707,10 +1709,8 @@
priv->scrollback_lines = int_val;
return TRUE;
}
- else
- {
- return FALSE;
- }
+
+ return FALSE;
}
static gboolean
@@ -1727,10 +1727,8 @@
priv->exit_action = action;
return TRUE;
}
- else
- {
- return FALSE;
- }
+
+ return FALSE;
}
static gboolean
@@ -1840,10 +1838,8 @@
priv->background_type = type;
return TRUE;
}
- else
- {
- return FALSE;
- }
+
+ return FALSE;
}
static gboolean
@@ -1890,10 +1886,8 @@
priv->backspace_binding = binding;
return TRUE;
}
- else
- {
- return FALSE;
- }
+
+ return FALSE;
}
static gboolean
@@ -2412,8 +2406,8 @@
if (profiles)
return g_hash_table_lookup (profiles, name);
- else
- return NULL;
+
+ return NULL;
}
typedef struct
@@ -2446,8 +2440,8 @@
g_hash_table_foreach (profiles, lookup_by_visible_name_foreach, &info);
return info.result;
}
- else
- return NULL;
+
+ return NULL;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]