[DebugInfo] Use std::move (NFC) (#136263)

This commit is contained in:
Kazu Hirata
2025-04-18 10:05:18 -07:00
committed by GitHub
parent d3d9b376c0
commit 2a692d265b

View File

@@ -41,7 +41,9 @@ namespace logicalview {
// Generate get and set 'std::string' functions.
#define STD_STRING_FUNCTION(FAMILY, FIELD) \
std::string get##FAMILY##FIELD() const { return FAMILY.FIELD; } \
void set##FAMILY##FIELD(std::string FIELD) { FAMILY.FIELD = FIELD; } \
void set##FAMILY##FIELD(std::string FIELD) { \
FAMILY.FIELD = std::move(FIELD); \
} \
void reset##FAMILY##FIELD() { FAMILY.FIELD = ""; }
// Generate get and set 'std::set' functions.