Skip to content

Commit eea877a

Browse files
committed
Move the optional
1 parent 6e9ce7e commit eea877a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/API/SBProgress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void SBProgress::Increment(uint64_t amount, const char *description) {
4343
std::optional<std::string> description_opt;
4444
if (description && description[0])
4545
description_opt = description;
46-
m_opaque_up->Increment(amount, description_opt);
46+
m_opaque_up->Increment(amount, std::move(description_opt));
4747
}
4848

4949
lldb_private::Progress &SBProgress::ref() const { return *m_opaque_up; }

0 commit comments

Comments
 (0)