зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1298243 part 2. Make the type of a DataTransferItem immutable. r=mystor
This commit is contained in:
Родитель
018d43c3c0
Коммит
298989ed98
|
@ -73,12 +73,6 @@ DataTransferItem::Clone(DataTransfer* aDataTransfer) const
|
|||
return it.forget();
|
||||
}
|
||||
|
||||
void
|
||||
DataTransferItem::SetType(const nsAString& aType)
|
||||
{
|
||||
mType = aType;
|
||||
}
|
||||
|
||||
void
|
||||
DataTransferItem::SetData(nsIVariant* aData)
|
||||
{
|
||||
|
|
|
@ -73,7 +73,6 @@ public:
|
|||
{
|
||||
aType = mType;
|
||||
}
|
||||
void SetType(const nsAString& aType);
|
||||
|
||||
eKind Kind() const
|
||||
{
|
||||
|
@ -138,7 +137,7 @@ private:
|
|||
|
||||
bool mChromeOnly;
|
||||
eKind mKind;
|
||||
nsString mType;
|
||||
const nsString mType;
|
||||
nsCOMPtr<nsIVariant> mData;
|
||||
nsCOMPtr<nsIPrincipal> mPrincipal;
|
||||
RefPtr<DataTransfer> mDataTransfer;
|
||||
|
|
Загрузка…
Ссылка в новой задаче