mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 16:38:09 +08:00
Apply clang-tidy.
This commit is contained in:
@@ -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_;
|
||||
|
||||
|
@@ -41,7 +41,7 @@ bool Box::Contain(int x, int y) const {
|
||||
|
||||
/// @return whether the box is empty.
|
||||
/// @ingroup screen
|
||||
bool Box::IsEmpty() {
|
||||
bool Box::IsEmpty() const {
|
||||
return x_min > x_max || y_min > y_max;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user