mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
more portable way of force inlining
This commit is contained in:
parent
2823a6fe3f
commit
ae7f3e7cfa
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "json_filter.h"
|
||||
|
||||
__attribute__((always_inline)) inline bool Contains(std::string_view str, const std::string &val)
|
||||
constexpr bool Contains(std::string_view str, const std::string &val)
|
||||
{
|
||||
return str.find(val) != std::string::npos;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "user_filter.h"
|
||||
|
||||
inline bool ValidUsername(const std::string &name) noexcept
|
||||
constexpr bool ValidUsername(const std::string &name) noexcept
|
||||
{
|
||||
if (name.size() < min_name_size || name.size() > max_name_size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue