[gnome-commander] Pass the string const reference
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Pass the string const reference
- Date: Fri, 7 Oct 2016 20:23:34 +0000 (UTC)
commit fa03f0ddcb76df7404b8a868f1d3fa0a974f433e
Author: Uwe Scholz <uwescholz src gnome org>
Date: Fri Oct 7 18:45:25 2016 +0200
Pass the string const reference
src/gnome-cmd-user-actions.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.h b/src/gnome-cmd-user-actions.h
index fe38cc8..8663dbc 100644
--- a/src/gnome-cmd-user-actions.h
+++ b/src/gnome-cmd-user-actions.h
@@ -198,7 +198,7 @@ class GnomeCmdUserActions
unsigned size() { return action.size();
}
const gchar *name(const_iterator &i) { return
action_func[i->second.func].c_str(); }
- const gchar *name(const std::string description) { return
action_func[action_name[description]].c_str(); }
+ const gchar *name(const std::string &description) { return
action_func[action_name[description]].c_str(); }
const gchar *description(const_iterator &i) { return
action_name[i->second.func].c_str(); }
const gchar *options(const_iterator &i) { return
i->second.user_data.c_str(); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]