gnome-commander r2247 - branches/gcmd-1-3/src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2247 - branches/gcmd-1-3/src
- Date: Fri, 24 Oct 2008 21:42:32 +0000 (UTC)
Author: epiotr
Date: Fri Oct 24 21:42:31 2008
New Revision: 2247
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2247&view=rev
Log:
Code cleanup
Modified:
branches/gcmd-1-3/src/gnome-cmd-advrename-dialog.cc
Modified: branches/gcmd-1-3/src/gnome-cmd-advrename-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-advrename-dialog.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-advrename-dialog.cc Fri Oct 24 21:42:31 2008
@@ -716,14 +716,13 @@
inline gchar *create_new_name (const gchar *name, GList *patterns)
{
- gchar *tmp = NULL;
gchar *new_name = g_strdup (name);
for (; patterns; patterns = patterns->next)
{
PatternEntry *entry = (PatternEntry *) patterns->data;
- tmp = new_name;
+ gchar *tmp = new_name;
new_name = apply_one_pattern (tmp, entry, 0);
@@ -943,7 +942,7 @@
}
-static void do_test (GnomeCmdAdvrenameDialog *dialog)
+inline void do_test (GnomeCmdAdvrenameDialog *dialog)
{
update_new_names (dialog);
redisplay_new_names (dialog);
@@ -971,8 +970,6 @@
static void on_trim_combo_changed (GtkOptionMenu *optmenu, GnomeCmdAdvrenameDialog *dialog)
{
- TRACE(gtk_option_menu_get_history (optmenu));
-
switch (gtk_option_menu_get_history (optmenu))
{
case 0: dialog->priv->trim_blanks = gcmd_convert_unchanged; break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]