mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
Prevent inline destructor of completion_t to reduce compiled code size a bit
This commit is contained in:
parent
dd6d0e774c
commit
ef8ea97044
2 changed files with 7 additions and 0 deletions
|
@ -275,6 +275,10 @@ const wcstring &completion_entry_t::get_short_opt_str() const
|
|||
return short_opt_str;
|
||||
}
|
||||
|
||||
completion_t::~completion_t()
|
||||
{
|
||||
}
|
||||
|
||||
/* completion_t functions */
|
||||
completion_t::completion_t(const wcstring &comp, const wcstring &desc, int flags_val) : completion(comp), description(desc), flags(flags_val)
|
||||
{
|
||||
|
|
|
@ -104,6 +104,9 @@ private:
|
|||
completion_t();
|
||||
public:
|
||||
|
||||
/* Destructor. Not inlining it saves code size. */
|
||||
~completion_t();
|
||||
|
||||
/**
|
||||
The completion string
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue