cid#1634867 Using a moved object
since:
commit 193207c5ab
CommitDate: Tue Nov 19 07:46:25 2024 +0100
improve loplugin passparamsbyref
Change-Id: Ib2dfa03dfe66630ddb902ea4e75338ca70857e90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176899
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
@@ -24,7 +24,7 @@ struct StringWithHash
|
|||||||
sal_Int32 hashCode;
|
sal_Int32 hashCode;
|
||||||
StringWithHash(OUString s)
|
StringWithHash(OUString s)
|
||||||
: str(std::move(s))
|
: str(std::move(s))
|
||||||
, hashCode(s.hashCode())
|
, hashCode(str.hashCode())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user