summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-11 23:44:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-11 23:44:22 +0300
commit4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c (patch)
treee53f2bcda374d132de9fe51a9170ed1f2a58a53e /src/dirs.cpp
parent16cc2e4a4204ee95e8256f3d7eacaada99f53309 (diff)
downloadmanaverse-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.tar.gz
manaverse-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.tar.bz2
manaverse-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.tar.xz
manaverse-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.zip
Fix code style.
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r--src/dirs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp
index 5f99ebd0e..79ed197bf 100644
--- a/src/dirs.cpp
+++ b/src/dirs.cpp
@@ -195,7 +195,9 @@ void Dirs::mountDataDir()
CFBundleRef mainBundle = CFBundleGetMainBundle();
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
char path[PATH_MAX];
- if (!CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (uint8_t*)path,
+ if (!CFURLGetFileSystemRepresentation(resourcesURL,
+ TRUE,
+ reinterpret_cast<uint8_t*>(path),
PATH_MAX))
{
fprintf(stderr, "Can't find Resources directory\n");