Use ctor-initializer rather than assignment for non-POD class members

This commit is contained in:
Paul Cornett
2019-02-25 10:23:35 -08:00
parent 8df0cfba2a
commit 7c3ce912e0
59 changed files with 150 additions and 177 deletions

View File

@@ -123,8 +123,7 @@ public:
m_dc(dc),
m_rect(rect),
m_flags(flags)
{
m_pos = m_rect.x;
, m_pos(m_rect.x)
// We don't initialize the base class initial text background colour to
// the valid value because we want to be able to detect when we revert
@@ -134,7 +133,8 @@ public:
// background isn't used anyhow when the background mode is transparent
// but it might affect the caller if it sets the background mode to
// opaque and draws some text after using us.
m_origTextBackground = dc.GetTextBackground();
, m_origTextBackground(dc.GetTextBackground())
{
}
virtual void OnAttrStart(const Attr& attr) wxOVERRIDE