Skip to content

Commit 814b9ec

Browse files
committed
xrCore: remove cast from (const char*) to (char*) for restore_path_separators()
1 parent 156b282 commit 814b9ec

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/xrCore/LocatorAPI.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,6 @@ bool CLocatorAPI::Recurse(pcstr path)
721721
#elif defined(LINUX)
722722
globfree(&globbuf);
723723
#endif
724-
restore_path_separators((char *)path);
725-
726724
size_t newSize = rec_files.size();
727725
if (newSize > oldSize)
728726
{

src/xrCore/LocatorAPI_defs.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ FS_Path::FS_Path(LPCSTR _Root, LPCSTR _Add, LPCSTR _DefExt, LPCSTR _FilterCaptio
4343
xr_strcat(temp, _Add);
4444
if (temp[0] && temp[xr_strlen(temp) - 1] != _DELIMITER && temp[xr_strlen(temp) - 1] != '/')
4545
xr_strcat(temp, DELIMITER);
46+
restore_path_separators(temp);
4647
m_Path = xr_strdup(temp);
4748
m_DefExt = _DefExt ? xr_strdup(_DefExt) : 0;
4849
m_FilterCaption = _FilterCaption ? xr_strlwr(xr_strdup(_FilterCaption)) : 0;

0 commit comments

Comments
 (0)