Changeset 13041 for OpenSceneGraph/trunk/src/osg/ApplicationUsage.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/ApplicationUsage.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/ApplicationUsage.cpp
r12329 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 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 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * 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 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 101 101 102 102 std::string line; 103 103 104 104 for(citr=um.begin(); 105 105 citr!=um.end(); … … 136 136 } 137 137 } 138 138 139 139 const std::string& explanation = citr->second; 140 140 std::string::size_type pos = 0; … … 176 176 firstInLine = true; 177 177 } 178 else if (slashn_pos==pos+width) 178 else if (slashn_pos==pos+width) 179 179 { 180 180 ++extraSkip; … … 187 187 // now reduce width until we get a space or a return 188 188 // so that we ensure that whole words are printed. 189 while (width>0 && 190 explanation[pos+width]!=' ' && 189 while (width>0 && 190 explanation[pos+width]!=' ' && 191 191 explanation[pos+width]!='\n') --width; 192 192 … … 239 239 needspace = true; 240 240 } 241 241 242 242 if ((type&ENVIRONMENTAL_VARIABLE) && !getEnvironmentalVariables().empty()) 243 243 { … … 275 275 maxNumCharsInOptions = maximum( maxNumCharsInOptions,static_cast<unsigned int>(len)); 276 276 } 277 277 278 278 unsigned int optionPos = 2; 279 279 std::string line; 280 280 281 281 for(citr=getEnvironmentalVariables().begin(); 282 282 citr!=getEnvironmentalVariables().end();
