Decompile fn_03439 (AsyncDiagnostic::MoveFrom)

Batch #14098 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_03439 AsyncDiagnostic::MoveFrom: logic confirmed by peer review

Peer-reviewed-by: secret, KWDev, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 07:09:52 +00:00
commit 1f7809ae40
2 changed files with 4 additions and 9 deletions

View file

@ -10,15 +10,10 @@ AsyncDiagnostic::AsyncDiagnostic(const bool* success, std::string* message, cons
// OFFSET: 0x005B9D90
// FUNCTION: fn_03439
AsyncDiagnostic& AsyncDiagnostic::MoveFrom(AsyncDiagnostic& other) {
AsyncDiagnostic& AsyncDiagnostic::MoveFrom(AsyncDiagnostic& other) noexcept {
this->success = other.success;
if (&this->message != &other.message) {
this->message = std::move(other.message);
}
if (&this->file != &other.file) {
this->file = std::move(other.file);
}
this->message = std::move(other.message);
this->file = std::move(other.file);
this->line = other.line;
return *this;

View file

@ -12,7 +12,7 @@ struct AsyncDiagnostic {
: AsyncDiagnostic(&success, &message, file, &line) {
}
~AsyncDiagnostic();
AsyncDiagnostic& MoveFrom(AsyncDiagnostic& other);
AsyncDiagnostic& MoveFrom(AsyncDiagnostic& other) noexcept;
/* 0000 */ std::uint32_t line;
/* 0004 */ std::string file;