cql3: Avoid unnecessary copy of a string

This commit is contained in:
Tomasz Grabiec
2015-02-10 16:16:35 +01:00
parent ca4688540f
commit 0973d7df7c

View File

@@ -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) {