Performance.

This commit is contained in:
Jeff Young
2025-06-08 16:33:05 +01:00
parent ff0f6c448b
commit 96dd1815ea
+3 -3
View File
@@ -92,7 +92,7 @@ public:
class KICOMMON_API TOOLBAR_GROUP_CONFIG
{
public:
TOOLBAR_GROUP_CONFIG( wxString aName ) :
TOOLBAR_GROUP_CONFIG( const wxString& aName ) :
m_groupName( aName )
{
}
@@ -134,7 +134,7 @@ public:
TOOLBAR_CONFIGURATION() {}
virtual ~TOOLBAR_CONFIGURATION() {}
TOOLBAR_CONFIGURATION& AppendAction( std::string aActionName )
TOOLBAR_CONFIGURATION& AppendAction( const std::string& aActionName )
{
m_toolbarItems.emplace_back( TOOLBAR_ITEM_TYPE::TOOL, aActionName );
return *this;
@@ -168,7 +168,7 @@ public:
return *this;
}
TOOLBAR_CONFIGURATION& AppendControl( std::string aControlName )
TOOLBAR_CONFIGURATION& AppendControl( const std::string& aControlName )
{
m_toolbarItems.emplace_back( TOOLBAR_ITEM_TYPE::CONTROL, aControlName );
return *this;