Changed GetUndoString() and GetRedoString() to use nsString *.

This commit is contained in:
kin%netscape.com 1999-05-27 20:50:05 +00:00
Родитель f8fb448e7e
Коммит afd2019922
2 изменённых файлов: 10 добавлений и 8 удалений

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

@ -98,15 +98,15 @@ public:
/**
* Returns the string to display for the undo menu item.
* @param aString will point to string to display.
* @param aString will be set to the string to display.
*/
NS_IMETHOD GetUndoString(nsString **aString) = 0;
NS_IMETHOD GetUndoString(nsString *aString) = 0;
/**
* Returns the string to display for the redo menu item.
* @param aString will point to string to display.
* @param aString will be set to the string to display.
*/
NS_IMETHOD GetRedoString(nsString **aString) = 0;
NS_IMETHOD GetRedoString(nsString *aString) = 0;
};
#endif // nsITransaction_h__

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

@ -653,15 +653,17 @@ public:
return aOutputStream->Write(buf, strlen(buf), &amt);
}
NS_IMETHOD GetUndoString(nsString **aString)
NS_IMETHOD GetUndoString(nsString *aString)
{
*aString = 0;
if (aString)
*aString = "";
return NS_OK;
}
NS_IMETHOD GetRedoString(nsString **aString)
NS_IMETHOD GetRedoString(nsString *aString)
{
*aString = 0;
if (aString)
*aString = "";
return NS_OK;
}