mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Possible clarification and reimplementation of Ref<T> classes (#719)
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
@@ -568,7 +568,7 @@ Component Input(InputOption option) {
|
||||
/// placeholder
|
||||
/// ```
|
||||
Component Input(StringRef content, InputOption option) {
|
||||
option.content = content;
|
||||
option.content = std::move(content);
|
||||
return Make<InputBase>(std::move(option));
|
||||
}
|
||||
|
||||
@@ -594,8 +594,8 @@ Component Input(StringRef content, InputOption option) {
|
||||
/// placeholder
|
||||
/// ```
|
||||
Component Input(StringRef content, StringRef placeholder, InputOption option) {
|
||||
option.content = content;
|
||||
option.placeholder = placeholder;
|
||||
option.content = std::move(content);
|
||||
option.placeholder = std::move(placeholder);
|
||||
return Make<InputBase>(std::move(option));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user