зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1792574, part 1 - Move nsAssignmentType to nsStringStream.h. r=xpcom-reviewers,nika
That's the only place it is used. Differential Revision: https://phabricator.services.mozilla.com/D158211
This commit is contained in:
Родитель
724b167fce
Коммит
8b86b655f6
|
@ -101,13 +101,4 @@ class nsMemory {
|
|||
#define NS_FREE_XPCOM_ISUPPORTS_POINTER_ARRAY(size, array) \
|
||||
NS_FREE_XPCOM_POINTER_ARRAY((size), (array), NS_IF_RELEASE)
|
||||
|
||||
/**
|
||||
* An enumeration type used to represent a method of assignment.
|
||||
*/
|
||||
enum nsAssignmentType {
|
||||
NS_ASSIGNMENT_COPY, // copy by value
|
||||
NS_ASSIGNMENT_DEPEND, // copy by reference
|
||||
NS_ASSIGNMENT_ADOPT // copy by reference (take ownership of resource)
|
||||
};
|
||||
|
||||
#endif // nsMemory_h__
|
||||
|
|
|
@ -28,6 +28,15 @@
|
|||
} \
|
||||
}
|
||||
|
||||
/**
|
||||
* An enumeration type used to represent a method of assignment.
|
||||
*/
|
||||
enum nsAssignmentType {
|
||||
NS_ASSIGNMENT_COPY, // copy by value
|
||||
NS_ASSIGNMENT_DEPEND, // copy by reference
|
||||
NS_ASSIGNMENT_ADOPT // copy by reference (take ownership of resource)
|
||||
};
|
||||
|
||||
/**
|
||||
* Factory method to get an nsInputStream from a byte buffer. Result will
|
||||
* implement nsIStringInputStream, nsITellableStream and nsISeekableStream.
|
||||
|
|
Загрузка…
Ссылка в новой задаче