Bug 984786 part 6: Mark struct nsRangeStore in /editor as MOZ_FINAL & give it a private destructor. r=ehsan

This commit is contained in:
Daniel Holbert 2014-04-02 09:21:12 -07:00
parent 0a7b04c924
commit ae9419c109

View File

@ -28,10 +28,15 @@ class Selection;
*/
// first a helper struct for saving/setting ranges
struct nsRangeStore
struct nsRangeStore MOZ_FINAL
{
nsRangeStore();
private:
// Private destructor, to discourage deletion outside of Release():
~nsRangeStore();
public:
nsresult StoreRange(nsIDOMRange *aRange);
nsresult GetRange(nsRange** outRange);