Skip to content

Commit a916732

Browse files
committed
added const
1 parent 6487554 commit a916732

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

include/omath/hud/entity_overlay.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,47 +71,47 @@ namespace omath::hud
7171
const std::string_view& text);
7272

7373
template<typename... Args>
74-
EntityOverlay& add_right_label(const Color& color, float offset, bool outlined, std::format_string<Args...> fmt,
74+
EntityOverlay& add_right_label(const Color& color, const float offset, const bool outlined, std::format_string<Args...> fmt,
7575
Args&&... args)
7676
{
7777
return add_right_label(color, offset, outlined,
7878
std::string_view{std::vformat(fmt.get(), std::make_format_args(args...))});
7979
}
8080

8181
template<typename... Args>
82-
EntityOverlay& add_left_label(const Color& color, float offset, bool outlined, std::format_string<Args...> fmt,
82+
EntityOverlay& add_left_label(const Color& color, const float offset, const bool outlined, std::format_string<Args...> fmt,
8383
Args&&... args)
8484
{
8585
return add_left_label(color, offset, outlined,
8686
std::string_view{std::vformat(fmt.get(), std::make_format_args(args...))});
8787
}
8888

8989
template<typename... Args>
90-
EntityOverlay& add_top_label(const Color& color, float offset, bool outlined, std::format_string<Args...> fmt,
90+
EntityOverlay& add_top_label(const Color& color, const float offset, const bool outlined, std::format_string<Args...> fmt,
9191
Args&&... args)
9292
{
9393
return add_top_label(color, offset, outlined,
9494
std::string_view{std::vformat(fmt.get(), std::make_format_args(args...))});
9595
}
9696

9797
template<typename... Args>
98-
EntityOverlay& add_bottom_label(const Color& color, float offset, bool outlined,
98+
EntityOverlay& add_bottom_label(const Color& color, const float offset, const bool outlined,
9999
std::format_string<Args...> fmt, Args&&... args)
100100
{
101101
return add_bottom_label(color, offset, outlined,
102102
std::string_view{std::vformat(fmt.get(), std::make_format_args(args...))});
103103
}
104104

105105
template<typename... Args>
106-
EntityOverlay& add_centered_top_label(const Color& color, float offset, bool outlined,
106+
EntityOverlay& add_centered_top_label(const Color& color, const float offset, const bool outlined,
107107
std::format_string<Args...> fmt, Args&&... args)
108108
{
109109
return add_centered_top_label(color, offset, outlined,
110110
std::string_view{std::vformat(fmt.get(), std::make_format_args(args...))});
111111
}
112112

113113
template<typename... Args>
114-
EntityOverlay& add_centered_bottom_label(const Color& color, float offset, bool outlined,
114+
EntityOverlay& add_centered_bottom_label(const Color& color, const float offset, const bool outlined,
115115
std::format_string<Args...> fmt, Args&&... args)
116116
{
117117
return add_centered_bottom_label(color, offset, outlined,

0 commit comments

Comments
 (0)