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:
Andrew McCreight 2022-09-28 15:17:45 +00:00
Родитель 724b167fce
Коммит 8b86b655f6
2 изменённых файлов: 9 добавлений и 9 удалений

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

@ -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.