зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1325234 (part 7) - Streamline nsIWidget::GetSelectionAsPlaintext. r=mstange.
This patch changes it from |NS_IMETHOD| to |virtual MOZ_MUST_USE nsresult|. --HG-- extra : rebase_source : 3af9e5f5c2a558db38c2f98ca6740794aaae08e7
This commit is contained in:
Родитель
e52b19470c
Коммит
390bf447ab
|
@ -375,7 +375,8 @@ public:
|
|||
|
||||
NS_IMETHOD ActivateNativeMenuItemAt(const nsAString& indexString) override;
|
||||
NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString& indexString) override;
|
||||
NS_IMETHOD GetSelectionAsPlaintext(nsAString& aResult) override;
|
||||
virtual MOZ_MUST_USE nsresult
|
||||
GetSelectionAsPlaintext(nsAString& aResult) override;
|
||||
|
||||
NS_IMETHOD_(void) SetInputContext(const InputContext& aContext,
|
||||
const InputContextAction& aAction) override;
|
||||
|
|
|
@ -6175,7 +6175,7 @@ provideDataForType:(NSString*)aType
|
|||
return command.mSucceeded && command.mIsEnabled;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsresult
|
||||
nsChildView::GetSelectionAsPlaintext(nsAString& aResult)
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
||||
|
|
|
@ -1724,7 +1724,7 @@ public:
|
|||
* @param aResult - the current text selection. Is empty if no selection.
|
||||
* @return nsresult - whether or not aResult was assigned the selected text.
|
||||
*/
|
||||
NS_IMETHOD
|
||||
virtual MOZ_MUST_USE nsresult
|
||||
GetSelectionAsPlaintext(nsAString& aResult)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
|
|
Загрузка…
Ссылка в новой задаче