From 674bbfe24ded465a4d27b268ca84f75976d556da Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 30 Aug 2017 15:37:47 -0400 Subject: Split auto restorer from fx_basic This CL moves CFX_AutoRestorer into its own file, separate from fx_basic.h. Change-Id: I415cb9207416bd4744b8ac8e2d7466852db53f0a Reviewed-on: https://pdfium-review.googlesource.com/12390 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- core/fxcrt/fx_basic.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'core/fxcrt/fx_basic.h') diff --git a/core/fxcrt/fx_basic.h b/core/fxcrt/fx_basic.h index 167ef5ce70..8e3312d365 100644 --- a/core/fxcrt/fx_basic.h +++ b/core/fxcrt/fx_basic.h @@ -142,18 +142,6 @@ class IFX_Pause { virtual bool NeedToPauseNow() = 0; }; -template -class CFX_AutoRestorer { - public: - explicit CFX_AutoRestorer(T* location) - : m_Location(location), m_OldValue(*location) {} - ~CFX_AutoRestorer() { *m_Location = m_OldValue; } - - private: - T* const m_Location; - const T m_OldValue; -}; - uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits); #endif // CORE_FXCRT_FX_BASIC_H_ -- cgit v1.2.3