mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 08:05:51 +08:00
Prevent inline destructor of completion_t to reduce compiled code size a bit
This commit is contained in:
parent
dd6d0e774c
commit
ef8ea97044
|
@ -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 New Issue
Block a user