mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-19 17:40:51 +02:00
Fix complier warnings about returning reference to a temporary
This commit is contained in:
parent
c699bbda78
commit
6cd877efed
@ -1385,7 +1385,8 @@ const PluginID &PluginManagerInterface::DefaultRegistrationCallback(
|
|||||||
CommandDefinitionInterface * pCInterface = dynamic_cast<CommandDefinitionInterface*>(pInterface);
|
CommandDefinitionInterface * pCInterface = dynamic_cast<CommandDefinitionInterface*>(pInterface);
|
||||||
if( pCInterface )
|
if( pCInterface )
|
||||||
return PluginManager::Get().RegisterPlugin(provider, pCInterface);
|
return PluginManager::Get().RegisterPlugin(provider, pCInterface);
|
||||||
return "";
|
static wxString empty;
|
||||||
|
return empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PluginID &PluginManagerInterface::AudacityCommandRegistrationCallback(
|
const PluginID &PluginManagerInterface::AudacityCommandRegistrationCallback(
|
||||||
@ -1394,7 +1395,8 @@ const PluginID &PluginManagerInterface::AudacityCommandRegistrationCallback(
|
|||||||
CommandDefinitionInterface * pCInterface = dynamic_cast<CommandDefinitionInterface*>(pInterface);
|
CommandDefinitionInterface * pCInterface = dynamic_cast<CommandDefinitionInterface*>(pInterface);
|
||||||
if( pCInterface )
|
if( pCInterface )
|
||||||
return PluginManager::Get().RegisterPlugin(provider, pCInterface);
|
return PluginManager::Get().RegisterPlugin(provider, pCInterface);
|
||||||
return "";
|
static wxString empty;
|
||||||
|
return empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user