(file) Return to FileSystem.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/FileSystem.cpp between version 1.34 and 1.40.2.1

version 1.34, 2002/06/01 00:56:31 version 1.40.2.1, 2002/10/28 15:43:21
Line 159 
Line 159 
     if (fp == NULL)     if (fp == NULL)
         throw CannotOpenFile(fileName);         throw CannotOpenFile(fileName);
  
     array.reserve(fileSize);      array.reserveCapacity(fileSize);
     char buffer[4096];     char buffer[4096];
     size_t n;     size_t n;
  
Line 379 
Line 379 
  
 void FileSystem::translateSlashes(String& path) void FileSystem::translateSlashes(String& path)
 { {
     for (Char16* p = (Char16*)path.getData(); *p; p++)      for (Uint32 i = 0; i < path.size(); i++)
     {     {
         if (*p == '\\')          if (path[i] == '\\')
             *p = '/';              path[i] = '/';
     }     }
 } }
  


Legend:
Removed from v.1.34  
changed lines
  Added in v.1.40.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2