Avoid some -Wcast-qual warnings

This commit is contained in:
Paul Cornett
2021-03-17 10:16:32 -07:00
parent 12028057d8
commit 5154780bbf
3 changed files with 4 additions and 4 deletions

View File

@@ -1996,7 +1996,7 @@ void DnDShapeDataObject::CreateMetaFile() const
wxMetafile *mf = dcMF.Close();
DnDShapeDataObject *self = (DnDShapeDataObject *)this; // const_cast
DnDShapeDataObject* self = const_cast<DnDShapeDataObject*>(this);
self->m_dobjMetaFile.SetMetafile(*mf);
self->m_hasMetaFile = true;