From ef8ea97044dc49daa2cd0826e4835d543345c502 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 16 Apr 2013 15:01:24 -0700 Subject: [PATCH] Prevent inline destructor of completion_t to reduce compiled code size a bit --- complete.cpp | 4 ++++ complete.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/complete.cpp b/complete.cpp index c80c8f101..909f488ed 100644 --- a/complete.cpp +++ b/complete.cpp @@ -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) { diff --git a/complete.h b/complete.h index 72bcd8c12..5af677035 100644 --- a/complete.h +++ b/complete.h @@ -104,6 +104,9 @@ private: completion_t(); public: + /* Destructor. Not inlining it saves code size. */ + ~completion_t(); + /** The completion string */