Bug 1178363 - make nsTimerImpl::GetGeneration a private method; r=poiru

Since GetGeneration() is only called by nsTimerEvent, it doesn't need to
be public.
This commit is contained in:
Nathan Froyd 2015-06-29 13:09:11 -04:00
parent a497db0426
commit f95dac0fd1

View File

@ -48,11 +48,6 @@ public:
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSITIMER
int32_t GetGeneration()
{
return mGeneration;
}
virtual size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const override;
private:
@ -69,6 +64,11 @@ private:
static already_AddRefed<nsTimerImpl> PostTimerEvent(
already_AddRefed<nsTimerImpl> aTimerRef);
int32_t GetGeneration()
{
return mGeneration;
}
enum class CallbackType : uint8_t {
Unknown = 0,
Interface = 1,