cast away constness for a temporary fix to windows build bustage

This commit is contained in:
akkana%netscape.com 1999-06-04 22:58:47 +00:00
Родитель b37e7da58b
Коммит a6d85f64a3
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -307,7 +307,10 @@ nsCommentNode::ConvertContentToXIF(nsXIFConverter& aConverter) const
nsTextFragment* textFrag;
PRInt32 numFragments;
res = mInner.GetText(textFrag, numFragments);
// XXX This method is const, but GetText() isn't, so cast away the
// XXX constness of mInner to fix windows build bustage temporarily.
nsGenericDOMDataNode* inner = (nsGenericDOMDataNode*)&mInner;
res = inner->GetText(textFrag, numFragments);
if (!NS_SUCCEEDED(res))
return res;
#ifdef DEBUG_akkana

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

@ -307,7 +307,10 @@ nsCommentNode::ConvertContentToXIF(nsXIFConverter& aConverter) const
nsTextFragment* textFrag;
PRInt32 numFragments;
res = mInner.GetText(textFrag, numFragments);
// XXX This method is const, but GetText() isn't, so cast away the
// XXX constness of mInner to fix windows build bustage temporarily.
nsGenericDOMDataNode* inner = (nsGenericDOMDataNode*)&mInner;
res = inner->GetText(textFrag, numFragments);
if (!NS_SUCCEEDED(res))
return res;
#ifdef DEBUG_akkana