mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
constification: use const_cast to resolve a CONSTIFICATION warning
This commit is contained in:
parent
ca22ba77e1
commit
04d34c4061
1 changed files with 2 additions and 2 deletions
|
|
@ -2529,8 +2529,8 @@ XMLNode&
|
|||
Route::state (bool save_template) const
|
||||
{
|
||||
if (!_session._template_state_dir.empty()) {
|
||||
#warning CONSTIFICATION fix this
|
||||
// const_cast<Route*>(this)->foreach_processor (sigc::bind (sigc::mem_fun (*this, &Route::set_plugin_state_dir), _session._template_state_dir));
|
||||
Route* ncthis = const_cast<Route*> (this);
|
||||
foreach_processor (sigc::bind (sigc::mem_fun (*ncthis, &Route::set_plugin_state_dir), _session._template_state_dir));
|
||||
}
|
||||
|
||||
XMLNode *node = new XMLNode("Route");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue