diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index 230c4a317da..edad9ff2d5c 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -4086,7 +4086,7 @@ NS_IMETHODIMP PresShell::GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocation NS_ENSURE_ARG_POINTER(aNode); nsresult rv; nsAutoString anchorText; - static char strippedChars[] = {'\t','\r','\n'}; + static const char strippedChars[] = "\t\r\n"; // are we an anchor? nsCOMPtr anchor(do_QueryInterface(aNode));