libnetservices2: Fix Use-after-move
Pointed out by Clang Static Analyzer. Change-Id: Ifbf5bd5e02825e60f7b70b7f99093b6b9740f81d Reviewed-on: https://review.haiku-os.org/c/haiku/+/5896 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
This commit is contained in:
parent
d3811d0036
commit
09b2fc9e11
@ -71,7 +71,7 @@ BInvalidUrl::BInvalidUrl(const char* origin, BUrl url)
|
||||
BInvalidUrl::BInvalidUrl(BString origin, BUrl url)
|
||||
:
|
||||
BError(std::move(origin)),
|
||||
fUrl(std::move(origin))
|
||||
fUrl(std::move(url))
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user