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:
Caolán McNamara
2024-11-21 08:36:43 +00:00
parent 60ca9c8fd4
commit 2b16fd7e9b

View File

@@ -24,7 +24,7 @@ struct StringWithHash
sal_Int32 hashCode;
StringWithHash(OUString s)
: str(std::move(s))
, hashCode(s.hashCode())
, hashCode(str.hashCode())
{
}