Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgDB/FileNameUtils.cpp

    r12401 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    7272{ 
    7373    std::string new_fileName(fileName); 
    74      
     74 
    7575    std::string::size_type slash = 0; 
    7676    while( (slash=new_fileName.find_first_of(UNIX_PATH_SEPARATOR,slash)) != std::string::npos) 
     
    8484{ 
    8585    std::string new_fileName(fileName); 
    86      
     86 
    8787    std::string::size_type slash = 0; 
    8888    while( (slash=new_fileName.find_first_of(WINDOWS_PATH_SEPARATOR,slash)) != std::string::npos) 
     
    202202    // need to check for :// 
    203203    std::string::size_type pos(filename.find("://")); 
    204     if (pos == std::string::npos)  
     204    if (pos == std::string::npos) 
    205205        return false; 
    206206    std::string proto(filename.substr(0, pos)); 
    207      
     207 
    208208    return Registry::instance()->isProtocolRegistered(proto); 
    209209} 
     
    221221{ 
    222222    std::string::size_type pos(filename.find("://")); 
    223      
     223 
    224224    if (pos != std::string::npos) 
    225225    { 
     
    252252            return ""; 
    253253        } 
    254      
     254 
    255255    } 
    256256    return filename; 
     
    360360    char resolved_path[PATH_MAX]; 
    361361    char* result = realpath(path.c_str(), resolved_path); 
    362      
     362 
    363363    if (result) return std::string(resolved_path); 
    364364    else return path; 
    365 #endif  
     365#endif 
    366366} 
    367367