[gnome-commander] XML config: spare a few CPU cycles by reusing dir string
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] XML config: spare a few CPU cycles by reusing dir string
- Date: Mon, 17 Oct 2011 20:18:25 +0000 (UTC)
commit ac8635de392a8c3038df3a93d0265a75ff6f02e3
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Oct 17 21:57:48 2011 +0200
XML config: spare a few CPU cycles by reusing dir string
src/gnome-cmd-xml-config.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-xml-config.cc b/src/gnome-cmd-xml-config.cc
index 1f00d89..c8fae94 100644
--- a/src/gnome-cmd-xml-config.cc
+++ b/src/gnome-cmd-xml-config.cc
@@ -437,7 +437,7 @@ static void xml_start(GMarkupParseContext *context,
gint sort = atoi(param2);
if (!dir.empty() && sort<GnomeCmdFileList::NUM_COLUMNS)
- cfg->tabs[xml_fs].push_back(make_pair(string(param1),make_triple((GnomeCmdFileList::ColumnID) sort,(GtkSortType) param4,param5)));
+ cfg->tabs[xml_fs].push_back(make_pair(dir,make_triple((GnomeCmdFileList::ColumnID) sort,(GtkSortType) param4,param5)));
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]