mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 11:55:15 +00:00
cql3: Avoid unnecessary copy of a string
This commit is contained in:
@@ -39,7 +39,7 @@ public:
|
||||
if (!keep_case) {
|
||||
std::transform(ks.begin(), ks.end(), ks.begin(), ::tolower);
|
||||
}
|
||||
_ks_name = std::experimental::make_optional(ks);
|
||||
_ks_name = std::experimental::make_optional(std::move(ks));
|
||||
}
|
||||
|
||||
void set_column_family(sstring cf, bool keep_case) {
|
||||
|
||||
Reference in New Issue
Block a user