diff options
Diffstat (limited to 'indra/llfilesystem')
| -rw-r--r-- | indra/llfilesystem/lldir.cpp | 6 | ||||
| -rw-r--r-- | indra/llfilesystem/lldir_win32.cpp | 2 | ||||
| -rw-r--r-- | indra/llfilesystem/lllfsthread.cpp | 2 | 
3 files changed, 5 insertions, 5 deletions
| diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp index cbf4c1ffb8..483ef0fd02 100644 --- a/indra/llfilesystem/lldir.cpp +++ b/indra/llfilesystem/lldir.cpp @@ -638,7 +638,7 @@ std::string LLDir::getBaseFileName(const std::string& filepath, bool strip_exten  std::string LLDir::getDirName(const std::string& filepath) const  {      std::size_t offset = filepath.find_last_of(getDirDelimiter()); -    S32 len = (offset == std::string::npos) ? 0 : offset; +    auto len = (offset == std::string::npos) ? 0 : offset;      std::string dirname = filepath.substr(0, len);      return dirname;  } @@ -883,8 +883,8 @@ std::string LLDir::getScrubbedFileName(const std::string uncleanFileName)      // replace any illegal file chars with and underscore '_'      for( unsigned int i = 0; i < illegalChars.length(); i++ )      { -        int j = -1; -        while((j = name.find(illegalChars[i])) > -1) +        std::string::size_type j = -1; +        while((j = name.find(illegalChars[i])) > std::string::npos)          {              name[j] = '_';          } diff --git a/indra/llfilesystem/lldir_win32.cpp b/indra/llfilesystem/lldir_win32.cpp index 0fca4004b6..a607c70b44 100644 --- a/indra/llfilesystem/lldir_win32.cpp +++ b/indra/llfilesystem/lldir_win32.cpp @@ -233,7 +233,7 @@ LLDir_Win32::LLDir_Win32()      {          w_str[size] = '\0';          mExecutablePathAndName = utf16str_to_utf8str(llutf16string(w_str)); -        S32 path_end = mExecutablePathAndName.find_last_of('\\'); +        auto path_end = mExecutablePathAndName.find_last_of('\\');          if (path_end != std::string::npos)          {              mExecutableDir = mExecutablePathAndName.substr(0, path_end); diff --git a/indra/llfilesystem/lllfsthread.cpp b/indra/llfilesystem/lllfsthread.cpp index 7d135b4472..6a882f64a8 100644 --- a/indra/llfilesystem/lllfsthread.cpp +++ b/indra/llfilesystem/lllfsthread.cpp @@ -45,7 +45,7 @@ void LLLFSThread::initClass(bool local_is_threaded)  //static  S32 LLLFSThread::updateClass(U32 ms_elapsed)  { -    return sLocal->update((F32)ms_elapsed); +    return static_cast<S32>(sLocal->update((F32)ms_elapsed));  }  //static | 
