Changeset 867 for cpp/common/util-string.cpp
- Timestamp:
- 04/21/19 16:36:22 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/util-string.cpp
r862 r867 43 43 #ifdef VSNPRINTF_RETURNS_REQUIRED_SIZE 44 44 if (n > -1) /* glibc 2.1 */ 45 size = n +1; /* precisely what is needed */45 size = n + 1; /* precisely what is needed */ 46 46 else /* glibc 2.0 */ 47 47 #endif … … 82 82 size_t sep = filename.rfind(PATH_SEPARATOR_CHAR); 83 83 if (sep == string::npos) return filename; 84 return filename.substr(sep +1);84 return filename.substr(sep + 1); 85 85 } 86 86
Note: See TracChangeset
for help on using the changeset viewer.