mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Generate compile commands for clangd. (#855)
Fix all the diagnostics reported. Bug: https://github.com/ArthurSonzogni/FTXUI/issues/828
This commit is contained in:
committed by
ArthurSonzogni
parent
6a755f3760
commit
8a2a9b0799
@@ -4,7 +4,6 @@
|
||||
#include <functional> // for function
|
||||
#include <utility> // for move
|
||||
|
||||
#include "ftxui/component/captured_mouse.hpp" // for CapturedMouse
|
||||
#include "ftxui/component/component.hpp" // for Make, Checkbox
|
||||
#include "ftxui/component/component_base.hpp" // for Component, ComponentBase
|
||||
#include "ftxui/component/component_options.hpp" // for CheckboxOption, EntryState
|
||||
@@ -137,7 +136,7 @@ Component Checkbox(CheckboxOption option) {
|
||||
/// ```
|
||||
// NOLINTNEXTLINE
|
||||
Component Checkbox(ConstStringRef label, bool* checked, CheckboxOption option) {
|
||||
option.label = label;
|
||||
option.label = std::move(label);
|
||||
option.checked = checked;
|
||||
return Make<CheckboxBase>(std::move(option));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user