1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-10 17:11:17 +02:00

TieChoice needs only const reference to ChoiceSetting

This commit is contained in:
Paul Licameli 2019-11-27 00:11:07 -05:00
parent e008a44022
commit 0493aaccee
2 changed files with 2 additions and 2 deletions

View File

@ -1892,7 +1892,7 @@ wxTextCtrl * ShuttleGuiBase::TieNumericTextBox(
/// those as default. /// those as default.
wxChoice *ShuttleGuiBase::TieChoice( wxChoice *ShuttleGuiBase::TieChoice(
const wxString &Prompt, const wxString &Prompt,
ChoiceSetting &choiceSetting ) const ChoiceSetting &choiceSetting )
{ {
// Do this to force any needed migrations first // Do this to force any needed migrations first
choiceSetting.Read(); choiceSetting.Read();

View File

@ -237,7 +237,7 @@ public:
// This one is defined in terms of the next and not virtual // This one is defined in terms of the next and not virtual
virtual wxChoice *TieChoice( virtual wxChoice *TieChoice(
const wxString &Prompt, const wxString &Prompt,
ChoiceSetting &choiceSetting ); const ChoiceSetting &choiceSetting );
virtual wxChoice * TieChoice( virtual wxChoice * TieChoice(
const wxString &Prompt, const wxString &Prompt,