Skip to content

Commit

Permalink
xrCore: remove cast from (const char*) to (char*) for restore_path_se…
Browse files Browse the repository at this point in the history
…parators()
  • Loading branch information
eagleivg committed Nov 8, 2018
1 parent 156b282 commit 814b9ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/xrCore/LocatorAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,6 @@ bool CLocatorAPI::Recurse(pcstr path)
#elif defined(LINUX)
globfree(&globbuf);
#endif
restore_path_separators((char *)path);

size_t newSize = rec_files.size();
if (newSize > oldSize)
{
Expand Down
1 change: 1 addition & 0 deletions src/xrCore/LocatorAPI_defs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ FS_Path::FS_Path(LPCSTR _Root, LPCSTR _Add, LPCSTR _DefExt, LPCSTR _FilterCaptio
xr_strcat(temp, _Add);
if (temp[0] && temp[xr_strlen(temp) - 1] != _DELIMITER && temp[xr_strlen(temp) - 1] != '/')
xr_strcat(temp, DELIMITER);
restore_path_separators(temp);
m_Path = xr_strdup(temp);
m_DefExt = _DefExt ? xr_strdup(_DefExt) : 0;
m_FilterCaption = _FilterCaption ? xr_strlwr(xr_strdup(_FilterCaption)) : 0;
Expand Down

0 comments on commit 814b9ec

Please sign in to comment.