mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-27 13:46:54 +00:00
ResultVal: Fixed compilation when reassigning a ResultVal.
This commit is contained in:
parent
3f1a3952d7
commit
ca1a87ef7d
|
@ -307,14 +307,14 @@ public:
|
|||
}
|
||||
|
||||
ResultVal& operator=(const ResultVal& o) {
|
||||
if (*this) {
|
||||
if (o) {
|
||||
if (!empty()) {
|
||||
if (!o.empty()) {
|
||||
*GetPointer() = *o.GetPointer();
|
||||
} else {
|
||||
GetPointer()->~T();
|
||||
}
|
||||
} else {
|
||||
if (o) {
|
||||
if (!o.empty()) {
|
||||
new (&storage) T(*o.GetPointer());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue