Changing a char array to a PRUnichar array, to fix a build

warning. r=sspitzer.
This commit is contained in:
bryner%uiuc.edu 1999-12-29 03:45:26 +00:00
Родитель fc6d39f73f
Коммит 37a7616b04
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -5265,7 +5265,7 @@ nsHTMLEditor::SetCaretInTableCell(nsIDOMElement* aElement)
// Check if node is text and has more than just a &nbsp // Check if node is text and has more than just a &nbsp
nsCOMPtr<nsIDOMCharacterData>textNode = do_QueryInterface(node); nsCOMPtr<nsIDOMCharacterData>textNode = do_QueryInterface(node);
nsAutoString text; nsAutoString text;
char nbspStr[2] = {nbsp, 0}; PRUnichar nbspStr[2] = {nbsp, 0};
if (textNode && textNode->GetData(text)) if (textNode && textNode->GetData(text))
{ {
// Set selection relative to the text node // Set selection relative to the text node

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

@ -5265,7 +5265,7 @@ nsHTMLEditor::SetCaretInTableCell(nsIDOMElement* aElement)
// Check if node is text and has more than just a &nbsp // Check if node is text and has more than just a &nbsp
nsCOMPtr<nsIDOMCharacterData>textNode = do_QueryInterface(node); nsCOMPtr<nsIDOMCharacterData>textNode = do_QueryInterface(node);
nsAutoString text; nsAutoString text;
char nbspStr[2] = {nbsp, 0}; PRUnichar nbspStr[2] = {nbsp, 0};
if (textNode && textNode->GetData(text)) if (textNode && textNode->GetData(text))
{ {
// Set selection relative to the text node // Set selection relative to the text node