summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-04 12:40:26 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-04 12:40:26 +0000
commit36564e4f910bc31fa23a6e73da8440f6ad78a2fc (patch)
treea04b741577686802733c0804311943be44bc65cb /gtk2_ardour/mixer_ui.cc
parent12bf437c6eb6677f10ef7d09b1e096cf67ed73b1 (diff)
Use std::string for order key map.
git-svn-id: svn://localhost/ardour2/branches/3.0@5318 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index d43bd92401..3010f0b0a1 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -374,7 +374,7 @@ Mixer_UI::remove_strip (MixerStrip* strip)
strip_redisplay_does_not_sync_order_keys = false;
}
-const char*
+string
Mixer_UI::get_order_key()
{
return X_("signal");
@@ -388,13 +388,13 @@ Mixer_UI::get_order_key()
}
void
-Mixer_UI::sync_order_keys (const char *src)
+Mixer_UI::sync_order_keys (string const & src)
{
vector<int> neworder;
TreeModel::Children rows = track_model->children();
TreeModel::Children::iterator ri;
- if ((strcmp (src, get_order_key()) == 0) || !session || (session->state_of_the_state() & Session::Loading) || rows.empty()) {
+ if (src != get_order_key() || !session || (session->state_of_the_state() & Session::Loading) || rows.empty()) {
return;
}