forked from mirrors/gecko-dev
Bug 1833799 - Avoid a copy that clang 7 warns about. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D178417
This commit is contained in:
parent
5b8d15821d
commit
17cb194f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ int QuotaFullPathname(sqlite3_vfs* vfs, const char* zName, int nOut,
|
||||||
NS_ConvertUTF8toUTF16 name(zName);
|
NS_ConvertUTF8toUTF16 name(zName);
|
||||||
|
|
||||||
if (name.First() == '/') {
|
if (name.First() == '/') {
|
||||||
return name;
|
return std::move(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
QM_TRY_INSPECT(const auto& file,
|
QM_TRY_INSPECT(const auto& file,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue