Code style

This commit is contained in:
Jon Evans 2021-03-24 18:11:32 -04:00
parent 75819206a0
commit cb722c6bfa
4 changed files with 6 additions and 5 deletions

View File

@ -159,6 +159,7 @@ void ACTION_PLUGINS::register_action( ACTION_PLUGIN* aAction )
// Load icon if supplied
wxString icon_file_name = aAction->GetIconFileName( GetBitmapStore()->IsDarkTheme() );
if( !icon_file_name.IsEmpty() )
{
{

View File

@ -83,10 +83,10 @@ public:
/**
* Function GetIconFileName
* @param dark true if requesting dark theme icon
* @param aDark true if requesting dark theme icon
* @return a path to icon for the action plugin button
*/
virtual wxString GetIconFileName( bool dark ) = 0;
virtual wxString GetIconFileName( bool aDark ) = 0;
/**
* Function GetPluginPath

View File

@ -138,11 +138,11 @@ bool PYTHON_ACTION_PLUGIN::GetShowToolbarButton()
}
wxString PYTHON_ACTION_PLUGIN::GetIconFileName( bool dark )
wxString PYTHON_ACTION_PLUGIN::GetIconFileName( bool aDark )
{
PyLOCK lock;
PyObject* arglist = Py_BuildValue( "(i)", (int) dark );
PyObject* arglist = Py_BuildValue( "(i)", static_cast<int>( aDark ) );
wxString result = CallRetStrMethod( "GetIconFileName", arglist );

View File

@ -52,7 +52,7 @@ public:
wxString GetName() override;
wxString GetDescription() override;
bool GetShowToolbarButton() override;
wxString GetIconFileName( bool dark ) override;
wxString GetIconFileName( bool aDark ) override;
wxString GetPluginPath() override;
void Run() override;
void* GetObject() override;