Skip to content
Snippets Groups Projects
Commit 368311a7 authored by Nicklas Boman's avatar Nicklas Boman
Browse files

Bug 1725363 - Replace PL_strcasecmp with nsCRT::strcasecmp image/ r=aosmond

parent 1f607e5f
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@
#include "nsIURL.h"
#include "nsNetUtil.h"
#include "plstr.h"
#include "nsCRT.h"
#include <stdlib.h>
using namespace mozilla;
......@@ -218,7 +219,7 @@ nsresult nsMozIconURI::SetSpecInternal(const nsACString& aSpec) {
if (!sizeString.IsEmpty()) {
const char* sizeStr = sizeString.get();
for (uint32_t i = 0; i < ArrayLength(kSizeStrings); i++) {
if (PL_strcasecmp(sizeStr, kSizeStrings[i]) == 0) {
if (nsCRT::strcasecmp(sizeStr, kSizeStrings[i]) == 0) {
mIconSize = i;
break;
}
......@@ -235,7 +236,7 @@ nsresult nsMozIconURI::SetSpecInternal(const nsACString& aSpec) {
if (!stateString.IsEmpty()) {
const char* stateStr = stateString.get();
for (uint32_t i = 0; i < ArrayLength(kStateStrings); i++) {
if (PL_strcasecmp(stateStr, kStateStrings[i]) == 0) {
if (nsCRT::strcasecmp(stateStr, kStateStrings[i]) == 0) {
mIconState = i;
break;
}
......@@ -412,7 +413,7 @@ nsMozIconURI::Equals(nsIURI* other, bool* result) {
rv = other->GetSpec(spec2);
NS_ENSURE_SUCCESS(rv, rv);
if (!PL_strcasecmp(spec1.get(), spec2.get())) {
if (!nsCRT::strcasecmp(spec1.get(), spec2.get())) {
*result = true;
} else {
*result = false;
......@@ -435,7 +436,7 @@ nsMozIconURI::SchemeIs(const char* aScheme, bool* aEquals) {
return NS_OK;
}
*aEquals = PL_strcasecmp("moz-icon", aScheme) ? false : true;
*aEquals = nsCRT::strcasecmp("moz-icon", aScheme) == 0;
return NS_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment