Skip to content

Commit 6249322

Browse files
committed
Remove unnecessary static_casts
1 parent 6cf555a commit 6249322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui-SFML.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ namespace
862862
{
863863
ImColor toImColor(sf::Color c)
864864
{
865-
return {static_cast<int>(c.r), static_cast<int>(c.g), static_cast<int>(c.b), static_cast<int>(c.a)};
865+
return {int{c.r}, int{c.g}, int{c.b}, int{c.a}};
866866
}
867867
ImVec2 toImVec2(const sf::Vector2f& v)
868868
{

0 commit comments

Comments
 (0)