Skip to content

Commit a20fab9

Browse files
committed
Remove inline attributes
Take preference to the compiler
1 parent c88793b commit a20fab9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

include/dynlibutils/module.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class CModule : public CMemory
305305
bool InitFromMemory(const CMemory pModuleMemory, bool bForce = true);
306306

307307
template<std::size_t N>
308-
[[always_inline, nodiscard]]
308+
[[nodiscard]]
309309
inline auto CreateSignature(const Pattern_t<N> &copyFrom)
310310
{
311311
static_assert(N > 0, "Pattern size must be > 0");
@@ -314,7 +314,7 @@ class CModule : public CMemory
314314
}
315315

316316
template<std::size_t N>
317-
[[always_inline, nodiscard]]
317+
[[nodiscard]]
318318
inline auto CreateSignature(Pattern_t<N> &&moveFrom)
319319
{
320320
static_assert(N > 0, "Pattern size must be > 0");
@@ -331,7 +331,6 @@ class CModule : public CMemory
331331
// Output : CMemory
332332
//-----------------------------------------------------------------------------
333333
template<std::size_t SIZE = (s_nDefaultPatternSize - 1) / 2>
334-
[[always_inline, flatten, hot]]
335334
inline CMemory FindPattern(const CMemoryView<std::uint8_t> pPatternMem, const std::string_view svMask, const CMemory pStartAddress, const Section_t* pModuleSection) const
336335
{
337336
const auto* pPattern = pPatternMem.RCastView();

0 commit comments

Comments
 (0)