Apply clang-tidy.

This commit is contained in:
ArthurSonzogni
2024-04-28 10:39:30 +02:00
parent affa787244
commit 7e3e1d4bca
3 changed files with 5 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ Component Dropdown(ConstStringListRef entries, int* selected) {
Component Dropdown(DropdownOption option) {
class Impl : public ComponentBase, public DropdownOption {
public:
Impl(DropdownOption option) : DropdownOption(std::move(option)) {
explicit Impl(DropdownOption option) : DropdownOption(std::move(option)) {
FillDefault();
checkbox_ = Checkbox(checkbox);
radiobox_ = Radiobox(radiobox);
@@ -71,8 +71,8 @@ Component Dropdown(DropdownOption option) {
}
void FillDefault() {
open_ = std::move(checkbox.checked);
selected_ = std::move(radiobox.selected);
open_ = checkbox.checked;
selected_ = radiobox.selected;
checkbox.checked = &*open_;
radiobox.selected = &*selected_;