mirror of
https://github.com/CDAGaming/blizzget
synced 2026-02-01 23:22:45 +03:00
Fix FontStruct to be C++11 compliant
This commit is contained in:
parent
a47b43b427
commit
16261038c4
@ -27,7 +27,17 @@ class FontSys {
|
|||||||
{
|
{
|
||||||
fs.font = nullptr;
|
fs.font = nullptr;
|
||||||
}
|
}
|
||||||
FontStruct(FontStruct const& fs) = delete;
|
FontStruct &operator=(FontStruct &&fs) {
|
||||||
|
if (&fs != this) {
|
||||||
|
font = fs.font;
|
||||||
|
face = std::move(fs.face);
|
||||||
|
size = fs.size;
|
||||||
|
flags = fs.flags;
|
||||||
|
fs.font = nullptr;
|
||||||
|
}
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
FontStruct(FontStruct const& fs) = delete;
|
||||||
~FontStruct() {
|
~FontStruct() {
|
||||||
if (font) DeleteObject(font);
|
if (font) DeleteObject(font);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user