Tracked some int to PRUint32 changes in the interface, replaced nsITreeItem with nsITreeDMItem.

This commit is contained in:
waterson%netscape.com 1998-11-11 20:06:58 +00:00
Родитель ecc8fc5fa1
Коммит 1da4bb556e
2 изменённых файлов: 9 добавлений и 9 удалений

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

@ -58,7 +58,7 @@ nsRDFTreeDataModel::QueryInterface(const nsIID& iid, void** result)
NS_IMETHODIMP NS_IMETHODIMP
nsRDFTreeDataModel::GetVisibleColumnCount(int& count) const nsRDFTreeDataModel::GetVisibleColumnCount(PRUint32& count) const
{ {
count = 0; count = 0;
for (PRInt32 i = mColumns.GetUpperBound(); i >= 0; --i) { for (PRInt32 i = mColumns.GetUpperBound(); i >= 0; --i) {
@ -71,7 +71,7 @@ nsRDFTreeDataModel::GetVisibleColumnCount(int& count) const
NS_IMETHODIMP NS_IMETHODIMP
nsRDFTreeDataModel::GetNthColumn(nsITreeColumn*& pColumn, int n) const nsRDFTreeDataModel::GetNthColumn(nsITreeColumn*& pColumn, PRUint32 n) const
{ {
if (n < 0 || n > mColumns.GetUpperBound()) { if (n < 0 || n > mColumns.GetUpperBound()) {
PR_ASSERT(0); PR_ASSERT(0);
@ -84,13 +84,13 @@ nsRDFTreeDataModel::GetNthColumn(nsITreeColumn*& pColumn, int n) const
NS_IMETHODIMP NS_IMETHODIMP
nsRDFTreeDataModel::GetFirstVisibleItemIndex(int& index) const nsRDFTreeDataModel::GetFirstVisibleItemIndex(PRUint32& index) const
{ {
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
NS_IMETHODIMP NS_IMETHODIMP
nsRDFTreeDataModel::GetNthTreeItem(nsITreeItem*& pItem, int n) const nsRDFTreeDataModel::GetNthTreeItem(nsITreeDMItem*& pItem, PRUint32 n) const
{ {
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
@ -98,7 +98,7 @@ nsRDFTreeDataModel::GetNthTreeItem(nsITreeItem*& pItem, int n) const
NS_IMETHODIMP NS_IMETHODIMP
nsRDFTreeDataModel::GetItemTextForColumn(nsString& nodeText, nsRDFTreeDataModel::GetItemTextForColumn(nsString& nodeText,
nsITreeItem* pItem, nsITreeDMItem* pItem,
nsITreeColumn* pColumn) const nsITreeColumn* pColumn) const
{ {
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;

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

@ -49,12 +49,12 @@ public:
// nsITreeDataModel interface // nsITreeDataModel interface
// Column APIs // Column APIs
NS_IMETHOD GetVisibleColumnCount(int& count) const; NS_IMETHOD GetVisibleColumnCount(PRUint32& count) const;
NS_IMETHOD GetNthColumn(nsITreeColumn*& pColumn, int n) const; NS_IMETHOD GetNthColumn(nsITreeColumn*& pColumn, PRUint32 n) const;
// TreeItem APIs // TreeItem APIs
NS_IMETHOD GetFirstVisibleItemIndex(int& index) const; NS_IMETHOD GetFirstVisibleItemIndex(PRUint32& index) const;
NS_IMETHOD GetNthTreeItem(nsITreeDMItem*& pItem, int n) const; NS_IMETHOD GetNthTreeItem(nsITreeDMItem*& pItem, PRUint32 n) const;
NS_IMETHOD GetItemTextForColumn(nsString& nodeText, nsITreeDMItem* pItem, nsITreeColumn* pColumn) const; NS_IMETHOD GetItemTextForColumn(nsString& nodeText, nsITreeDMItem* pItem, nsITreeColumn* pColumn) const;