mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-30 02:04:34 +00:00
New warning from !4980
It didn't like snake case, and then MSVC wasn't happened that it shadowed the constexpr value with the same name
This commit is contained in:
parent
f8553f2e8a
commit
9d0a8eb8c4
2 changed files with 6 additions and 6 deletions
|
|
@ -22,9 +22,9 @@ namespace Files
|
|||
namespace
|
||||
{
|
||||
#if defined(_WIN32) || defined(__WINDOWS__)
|
||||
constexpr auto applicationName = "OpenMW";
|
||||
constexpr auto sApplicationName = "OpenMW";
|
||||
#else
|
||||
constexpr auto applicationName = "openmw";
|
||||
constexpr auto sApplicationName = "openmw";
|
||||
#endif
|
||||
|
||||
using GetPath = const std::filesystem::path& (Files::FixedPath<>::*)() const;
|
||||
|
|
@ -37,7 +37,7 @@ namespace Files
|
|||
}
|
||||
|
||||
ConfigurationManager::ConfigurationManager(bool silent)
|
||||
: mFixedPath(applicationName)
|
||||
: mFixedPath(sApplicationName)
|
||||
, mSilent(silent)
|
||||
{
|
||||
// Initialize with fixed paths, will be overridden in `readConfiguration`.
|
||||
|
|
|
|||
|
|
@ -56,10 +56,10 @@ namespace Files
|
|||
/**
|
||||
* \brief Path constructor.
|
||||
*
|
||||
* \param [in] application_name - Name of the application
|
||||
* \param [in] applicationName - Name of the application
|
||||
*/
|
||||
FixedPath(const std::string& application_name)
|
||||
: mPath(application_name + "/")
|
||||
FixedPath(const std::string& applicationName)
|
||||
: mPath(applicationName + "/")
|
||||
, mUserConfigPath(mPath.getUserConfigPath())
|
||||
, mUserDataPath(mPath.getUserDataPath())
|
||||
, mGlobalConfigPath(mPath.getGlobalConfigPath())
|
||||
|
|
|
|||
Loading…
Reference in a new issue