Bug 88413: nsString::GetUnicode() -> nsString::get(), part 2. Aka "the ones that snuck in". r=mozbot, rs=scc

This commit is contained in:
jaggernaut%netscape.com 2001-07-03 04:41:15 +00:00
parent 627d9625e8
commit 13117164fd
2 changed files with 15 additions and 15 deletions

View File

@ -282,7 +282,7 @@ STDMETHODIMP Accessible::get_accName(
if (NS_FAILED(rv))
return S_FALSE;
*pszName = ::SysAllocString(name.GetUnicode());
*pszName = ::SysAllocString(name.get());
}
return S_OK;
@ -302,7 +302,7 @@ STDMETHODIMP Accessible::get_accValue(
if (NS_FAILED(rv))
return S_FALSE;
*pszValue = ::SysAllocString(value.GetUnicode());
*pszValue = ::SysAllocString(value.get());
}
return S_OK;
@ -322,7 +322,7 @@ STDMETHODIMP Accessible::get_accDescription(
if (NS_FAILED(rv))
return S_FALSE;
*pszDescription = ::SysAllocString(description.GetUnicode());
*pszDescription = ::SysAllocString(description.get());
}
return S_OK;
@ -438,7 +438,7 @@ STDMETHODIMP Accessible::get_accDefaultAction(
if (NS_FAILED(rv))
return S_FALSE;
*pszDefaultAction = ::SysAllocString(defaultAction.GetUnicode());
*pszDefaultAction = ::SysAllocString(defaultAction.get());
}
return S_OK;
@ -741,7 +741,7 @@ STDMETHODIMP DocAccessible::get_URL(/* [out] */ BSTR __RPC_FAR *aURL)
if (accDoc) {
nsAutoString URL;
if (NS_SUCCEEDED(accDoc->GetURL(URL))) {
*aURL= ::SysAllocString(URL.GetUnicode());
*aURL= ::SysAllocString(URL.get());
return S_OK;
}
}
@ -754,7 +754,7 @@ STDMETHODIMP DocAccessible::get_title( /* [out] */ BSTR __RPC_FAR *aTitle)
if (accDoc) {
nsAutoString title;
if (NS_SUCCEEDED(accDoc->GetTitle(title))) { // getter_Copies(pszTitle)))) {
*aTitle= ::SysAllocString(title.GetUnicode());
*aTitle= ::SysAllocString(title.get());
return S_OK;
}
}
@ -767,7 +767,7 @@ STDMETHODIMP DocAccessible::get_mimeType(/* [out] */ BSTR __RPC_FAR *aMimeType)
if (accDoc) {
nsAutoString mimeType;
if (NS_SUCCEEDED(accDoc->GetMimeType(mimeType))) {
*aMimeType= ::SysAllocString(mimeType.GetUnicode());
*aMimeType= ::SysAllocString(mimeType.get());
return S_OK;
}
}
@ -780,7 +780,7 @@ STDMETHODIMP DocAccessible::get_docType(/* [out] */ BSTR __RPC_FAR *aDocType)
if (accDoc) {
nsAutoString docType;
if (NS_SUCCEEDED(accDoc->GetDocType(docType))) {
*aDocType= ::SysAllocString(docType.GetUnicode());
*aDocType= ::SysAllocString(docType.get());
return S_OK;
}
}
@ -795,7 +795,7 @@ STDMETHODIMP DocAccessible::get_nameSpaceURIForID(/* [in] */ short aNameSpaceID
*aNameSpaceURI = NULL;
nsAutoString nameSpaceURI;
if (NS_SUCCEEDED(accDoc->GetNameSpaceURIForID(aNameSpaceID, nameSpaceURI)))
*aNameSpaceURI = ::SysAllocString(nameSpaceURI.GetUnicode());
*aNameSpaceURI = ::SysAllocString(nameSpaceURI.get());
return S_OK;
}

View File

@ -155,13 +155,13 @@ STDMETHODIMP SimpleDOMNode::get_nodeInfo(
if (*aNodeType != NODETYPE_TEXT) {
nsAutoString nodeName;
mDOMNode->GetNodeName(nodeName);
*aNodeName = ::SysAllocString(nodeName.GetUnicode());
*aNodeName = ::SysAllocString(nodeName.get());
}
nsAutoString nodeValue;
mDOMNode->GetNodeValue(nodeValue);
*aNodeValue = ::SysAllocString(nodeValue.GetUnicode());
*aNodeValue = ::SysAllocString(nodeValue.get());
PRInt32 nameSpaceID = 0;
if (content)
@ -213,7 +213,7 @@ STDMETHODIMP SimpleDOMNode::get_attributes(
nameAtom->GetUnicode(&pszAttributeName);
aAttribNames[index] = ::SysAllocString(pszAttributeName);
if (NS_SUCCEEDED(content->GetAttribute(nameSpaceID, nameAtom, attributeValue)))
aAttribValues[index] = ::SysAllocString(attributeValue.GetUnicode());
aAttribValues[index] = ::SysAllocString(attributeValue.get());
}
}
@ -280,8 +280,8 @@ STDMETHODIMP SimpleDOMNode::get_computedStyle(
if (NS_SUCCEEDED(cssDecl->Item(index, property)) && property.CharAt(0) != '-') // Ignore -moz-* properties
cssDecl->GetPropertyValue(property, value); // Get property value
if (!value.IsEmpty()) {
aStyleProperties[realIndex] = ::SysAllocString(property.GetUnicode());
aStyleValues[realIndex] = ::SysAllocString(value.GetUnicode());
aStyleProperties[realIndex] = ::SysAllocString(property.get());
aStyleValues[realIndex] = ::SysAllocString(value.get());
++realIndex;
}
}
@ -308,7 +308,7 @@ STDMETHODIMP SimpleDOMNode::get_computedStyleForProperties(
nsAutoString value;
if (aStyleProperties[index])
cssDecl->GetPropertyValue(nsDependentString(NS_STATIC_CAST(PRUnichar*,aStyleProperties[index])), value); // Get property value
aStyleValues[index] = ::SysAllocString(value.GetUnicode());
aStyleValues[index] = ::SysAllocString(value.get());
}
return S_OK;