diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index 4f2e0de44534..6fa60bad09e2 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -4416,7 +4416,7 @@ nsresult PresShell::GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocationStrin 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));