Improve GetAppSettings performance.

There's no need to construct a wxString first.

(cherry picked from commit a6d81d019fe69ef6e4c151b1c7c650b42a9035b9)
This commit is contained in:
Alex Shvartzkop 2025-04-04 23:27:18 +03:00
parent 7a04389ac2
commit 82f94e9185

View File

@ -101,7 +101,7 @@ public:
* @return a pointer to a loaded settings object.
*/
template<typename T>
T* GetAppSettings( const wxString& aFilename )
T* GetAppSettings( const char* aFilename )
{
std::lock_guard lock( m_app_settings_mutex );