mirror of
https://github.com/CDAGaming/blizzget
synced 2025-04-22 03:21: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;
|
||||
}
|
||||
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() {
|
||||
if (font) DeleteObject(font);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user