diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 20:34:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 20:59:26 +0300 |
commit | bdec92381ef60cd027292ed63e254e8de70028d9 (patch) | |
tree | ebf2722cdc9fe7383a709ba1584432a491cf10ba /src/dirs.cpp | |
parent | 5283a59db971ec2038149bf26ad9b3cbc4924449 (diff) | |
download | plus-bdec92381ef60cd027292ed63e254e8de70028d9.tar.gz plus-bdec92381ef60cd027292ed63e254e8de70028d9.tar.bz2 plus-bdec92381ef60cd027292ed63e254e8de70028d9.tar.xz plus-bdec92381ef60cd027292ed63e254e8de70028d9.zip |
In virtfs replace parameters type from char* to std::string.
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r-- | src/dirs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp index e64a54cbc..c1cd3ac49 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -488,9 +488,9 @@ void Dirs::initUpdatesDir() const std::string updateDir("/" + settings.updatesDir); // Verify that the updates directory exists. Create if necessary. - if (!VirtFs::isDirectory(updateDir.c_str())) + if (!VirtFs::isDirectory(updateDir)) { - if (!VirtFs::mkdir(updateDir.c_str())) + if (!VirtFs::mkdir(updateDir)) { #if defined WIN32 std::string newDir = settings.localDataDir + @@ -525,10 +525,10 @@ void Dirs::initUpdatesDir() } const std::string updateLocal = updateDir + "/local"; const std::string updateFix = updateDir + "/fix"; - if (!VirtFs::isDirectory(updateLocal.c_str())) - VirtFs::mkdir(updateLocal.c_str()); - if (!VirtFs::isDirectory(updateFix.c_str())) - VirtFs::mkdir(updateFix.c_str()); + if (!VirtFs::isDirectory(updateLocal)) + VirtFs::mkdir(updateLocal); + if (!VirtFs::isDirectory(updateFix)) + VirtFs::mkdir(updateFix); } void Dirs::initScreenshotDir() |