PFW-1523 Force inline unquoted_string constructor
Saves 36 bytes of flash
This commit is contained in:
parent
20a2216623
commit
ed376009aa
|
|
@ -89,7 +89,8 @@ struct unquoted_string {
|
||||||
public:
|
public:
|
||||||
/// @brief Given a pointer to a quoted string, filter out the quotes
|
/// @brief Given a pointer to a quoted string, filter out the quotes
|
||||||
/// @param pStr A constant pointer to a constant string to be searched/filtered. Modifying the pointer is strictly forbidden.
|
/// @param pStr A constant pointer to a constant string to be searched/filtered. Modifying the pointer is strictly forbidden.
|
||||||
unquoted_string(const char * const pStr)
|
/// NOTE: Forcing inline saves ~36 bytes of flash
|
||||||
|
inline __attribute__((always_inline)) unquoted_string(const char * const pStr)
|
||||||
: len(0)
|
: len(0)
|
||||||
, found(false)
|
, found(false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue