зеркало из https://github.com/mozilla/pjs.git
Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
This commit is contained in:
Родитель
1388fe821f
Коммит
7112fb1be4
|
@ -318,14 +318,14 @@ int main(int argc, char** argv)
|
|||
// skip -- gnu style options
|
||||
while (argn < argc) {
|
||||
nsDependentCString opt(argv[argn]);
|
||||
if (!Substring(opt, 0, 2).Equals(NS_LITERAL_CSTRING("--"))) {
|
||||
if (!Substring(opt, 0, 2).EqualsLiteral("--")) {
|
||||
break;
|
||||
}
|
||||
++argn;
|
||||
}
|
||||
if (argn < argc) {
|
||||
nsDependentCString opt(argv[argn]);
|
||||
if (Substring(opt, 0, 2).Equals(NS_LITERAL_CSTRING("-o"))) {
|
||||
if (Substring(opt, 0, 2).EqualsLiteral("-o")) {
|
||||
if (opt.Length() > 2) {
|
||||
const nsAFlatCString& fname =
|
||||
PromiseFlatCString(Substring(opt, 2, opt.Length()-2));
|
||||
|
@ -396,7 +396,7 @@ int main(int argc, char** argv)
|
|||
if (NS_SUCCEEDED(rv) && isDir) {
|
||||
rv = cat->GetNativeLeafName(leaf);
|
||||
if (NS_SUCCEEDED(rv) &&
|
||||
!leaf.Equals(NS_LITERAL_CSTRING("CVS"))) {
|
||||
!leaf.EqualsLiteral("CVS")) {
|
||||
rv = gold->AppendNative(leaf);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
runCategory(cat, gold, resFile, rdfOut);
|
||||
|
|
|
@ -167,7 +167,7 @@ int main(int argc, char** argv)
|
|||
txOptionEntry* option = options.GetEntry(NS_LITERAL_CSTRING("o"));
|
||||
if (option &&
|
||||
option->mValues.Count() > 0 &&
|
||||
!option->mValues[0]->Equals(NS_LITERAL_CSTRING("-"))) {
|
||||
!option->mValues[0]->EqualsLiteral("-")) {
|
||||
resultFileStream.open(option->mValues[0]->get(), ios::out);
|
||||
if (!resultFileStream) {
|
||||
cerr << "error opening output file: ";
|
||||
|
|
Загрузка…
Ссылка в новой задаче