зеркало из https://github.com/mozilla/gecko-dev.git
Corrected spelling in some comments.
This commit is contained in:
Родитель
b587975269
Коммит
5cb578f764
|
@ -1172,7 +1172,7 @@ nsprPath::operator const char*()
|
||||||
modifiedNSPRPath = PL_strdup( mFilePath );
|
modifiedNSPRPath = PL_strdup( mFilePath );
|
||||||
char* resultPath = modifiedNSPRPath;
|
char* resultPath = modifiedNSPRPath;
|
||||||
|
|
||||||
/* strip the leading seperator */
|
/* strip the leading separator */
|
||||||
if(resultPath[0] == '/')
|
if(resultPath[0] == '/')
|
||||||
resultPath = resultPath + 1;
|
resultPath = resultPath + 1;
|
||||||
|
|
||||||
|
@ -1180,7 +1180,7 @@ nsprPath::operator const char*()
|
||||||
if(resultPath[1] == '|')
|
if(resultPath[1] == '|')
|
||||||
resultPath[1] = ':';
|
resultPath[1] = ':';
|
||||||
|
|
||||||
/* Remove the ending seperator only if it is not the last seperator*/
|
/* Remove the ending separator only if it is not the last separator*/
|
||||||
int len = PL_strlen(resultPath);
|
int len = PL_strlen(resultPath);
|
||||||
if(resultPath[len - 1 ] == '/')
|
if(resultPath[len - 1 ] == '/')
|
||||||
if(resultPath[len - 2 ] != ':')
|
if(resultPath[len - 2 ] != ':')
|
||||||
|
|
|
@ -1172,7 +1172,7 @@ nsprPath::operator const char*()
|
||||||
modifiedNSPRPath = PL_strdup( mFilePath );
|
modifiedNSPRPath = PL_strdup( mFilePath );
|
||||||
char* resultPath = modifiedNSPRPath;
|
char* resultPath = modifiedNSPRPath;
|
||||||
|
|
||||||
/* strip the leading seperator */
|
/* strip the leading separator */
|
||||||
if(resultPath[0] == '/')
|
if(resultPath[0] == '/')
|
||||||
resultPath = resultPath + 1;
|
resultPath = resultPath + 1;
|
||||||
|
|
||||||
|
@ -1180,7 +1180,7 @@ nsprPath::operator const char*()
|
||||||
if(resultPath[1] == '|')
|
if(resultPath[1] == '|')
|
||||||
resultPath[1] = ':';
|
resultPath[1] = ':';
|
||||||
|
|
||||||
/* Remove the ending seperator only if it is not the last seperator*/
|
/* Remove the ending separator only if it is not the last separator*/
|
||||||
int len = PL_strlen(resultPath);
|
int len = PL_strlen(resultPath);
|
||||||
if(resultPath[len - 1 ] == '/')
|
if(resultPath[len - 1 ] == '/')
|
||||||
if(resultPath[len - 2 ] != ':')
|
if(resultPath[len - 2 ] != ':')
|
||||||
|
|
Загрузка…
Ссылка в новой задаче