Skip to content

Commit

Permalink
remove redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
bvr-yr committed Mar 11, 2024
1 parent 50103aa commit 462e299
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/widgets/PasswordInputField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <algorithm>

CPasswordInputField::CPasswordInputField(const Vector2D& viewport_, const std::unordered_map<std::string, std::any>& props) : shadow(this, props, viewport_) {
size = std::any_cast<Hyprlang::VEC2>(props.at("size"));
inner = std::any_cast<Hyprlang::INT>(props.at("inner_color"));
outer = std::any_cast<Hyprlang::INT>(props.at("outer_color"));
outThick = std::any_cast<Hyprlang::INT>(props.at("outline_thickness"));
Expand All @@ -23,9 +24,7 @@ CPasswordInputField::CPasswordInputField(const Vector2D& viewport_, const std::u
viewport = viewport_;

auto POS__ = std::any_cast<Hyprlang::VEC2>(props.at("position"));
auto SIZE__ = std::any_cast<Hyprlang::VEC2>(props.at("size"));
pos = {POS__.x, POS__.y};
size = {SIZE__.x, SIZE__.y};
configPos = pos;
configSize = size;

Expand Down

0 comments on commit 462e299

Please sign in to comment.