Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin

This commit is contained in:
roc+%cs.cmu.edu 2005-11-02 07:42:04 +00:00
Родитель 1388fe821f
Коммит 7112fb1be4
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -318,14 +318,14 @@ int main(int argc, char** argv)
// skip -- gnu style options // skip -- gnu style options
while (argn < argc) { while (argn < argc) {
nsDependentCString opt(argv[argn]); nsDependentCString opt(argv[argn]);
if (!Substring(opt, 0, 2).Equals(NS_LITERAL_CSTRING("--"))) { if (!Substring(opt, 0, 2).EqualsLiteral("--")) {
break; break;
} }
++argn; ++argn;
} }
if (argn < argc) { if (argn < argc) {
nsDependentCString opt(argv[argn]); 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) { if (opt.Length() > 2) {
const nsAFlatCString& fname = const nsAFlatCString& fname =
PromiseFlatCString(Substring(opt, 2, opt.Length()-2)); PromiseFlatCString(Substring(opt, 2, opt.Length()-2));
@ -396,7 +396,7 @@ int main(int argc, char** argv)
if (NS_SUCCEEDED(rv) && isDir) { if (NS_SUCCEEDED(rv) && isDir) {
rv = cat->GetNativeLeafName(leaf); rv = cat->GetNativeLeafName(leaf);
if (NS_SUCCEEDED(rv) && if (NS_SUCCEEDED(rv) &&
!leaf.Equals(NS_LITERAL_CSTRING("CVS"))) { !leaf.EqualsLiteral("CVS")) {
rv = gold->AppendNative(leaf); rv = gold->AppendNative(leaf);
if (NS_SUCCEEDED(rv)) { if (NS_SUCCEEDED(rv)) {
runCategory(cat, gold, resFile, rdfOut); runCategory(cat, gold, resFile, rdfOut);

Просмотреть файл

@ -167,7 +167,7 @@ int main(int argc, char** argv)
txOptionEntry* option = options.GetEntry(NS_LITERAL_CSTRING("o")); txOptionEntry* option = options.GetEntry(NS_LITERAL_CSTRING("o"));
if (option && if (option &&
option->mValues.Count() > 0 && option->mValues.Count() > 0 &&
!option->mValues[0]->Equals(NS_LITERAL_CSTRING("-"))) { !option->mValues[0]->EqualsLiteral("-")) {
resultFileStream.open(option->mValues[0]->get(), ios::out); resultFileStream.open(option->mValues[0]->get(), ios::out);
if (!resultFileStream) { if (!resultFileStream) {
cerr << "error opening output file: "; cerr << "error opening output file: ";