зеркало из https://github.com/mozilla/pjs.git
Changed GetUndoString() and GetRedoString() to use nsString *.
This commit is contained in:
Родитель
f8fb448e7e
Коммит
afd2019922
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче