mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Improve GetAppSettings performance.
There's no need to construct a wxString first. (cherry picked from commit a6d81d019fe69ef6e4c151b1c7c650b42a9035b9)
This commit is contained in:
parent
7a04389ac2
commit
82f94e9185
@ -101,7 +101,7 @@ public:
|
|||||||
* @return a pointer to a loaded settings object.
|
* @return a pointer to a loaded settings object.
|
||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T* GetAppSettings( const wxString& aFilename )
|
T* GetAppSettings( const char* aFilename )
|
||||||
{
|
{
|
||||||
std::lock_guard lock( m_app_settings_mutex );
|
std::lock_guard lock( m_app_settings_mutex );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user