summaryrefslogtreecommitdiff
path: root/libcc1/connection.hh
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-04 15:26:58 -0600
committerTom Tromey <tom@tromey.com>2021-05-05 00:06:16 -0600
commit41f4381648feb1e5eaa27d108b21e2b95ad3739d (patch)
treee4720df20fbf198b3dea2f336365669774838f38 /libcc1/connection.hh
parente1f5252e4d4747e912e33bdbb5aef80055460aa2 (diff)
libcc1: inline some simple methods
This changes libcc1 to inline a trivial method and to use the default constructor. libcc1 * connection.hh (~connection): Use default. (print): Inline. * connection.cc (cc1_plugin::connection::~connection) (cc1_plugin::connection::print): Remove definitions.
Diffstat (limited to 'libcc1/connection.hh')
-rw-r--r--libcc1/connection.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcc1/connection.hh b/libcc1/connection.hh
index 50e8a8b5a03..a0e99bdbd98 100644
--- a/libcc1/connection.hh
+++ b/libcc1/connection.hh
@@ -46,7 +46,7 @@ namespace cc1_plugin
{
}
- virtual ~connection ();
+ virtual ~connection () = default;
// Send a single character. This is used to introduce various
// higher-level protocol elements.
@@ -89,7 +89,9 @@ namespace cc1_plugin
m_callbacks.add_callback (name, func);
}
- virtual void print (const char *);
+ virtual void print (const char *)
+ {
+ }
private: