Factor out wxGCDCImpl::CommonInit()

No real changes, just a small refactoring that will allow reusing the
new CommonInit() method in the next commit.
This commit is contained in:
Vadim Zeitlin
2018-12-15 16:51:49 +01:00
committed by Vadim Zeitlin
parent b192b4f676
commit 0338ad5124
2 changed files with 18 additions and 6 deletions

View File

@@ -234,6 +234,12 @@ protected:
bool m_isClipBoxValid;
private:
// This method only initializes trivial fields.
void CommonInit();
// This method initializes all fields (including those initialized by
// CommonInit() as it calls it) and the given context, if non-null, which
// is assumed to be newly created.
void Init(wxGraphicsContext*);
wxDECLARE_CLASS(wxGCDCImpl);