summaryrefslogtreecommitdiff
path: root/libcc1/callbacks.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libcc1/callbacks.hh')
-rw-r--r--libcc1/callbacks.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/libcc1/callbacks.hh b/libcc1/callbacks.hh
index b1f3e98d917..dc470c62c48 100644
--- a/libcc1/callbacks.hh
+++ b/libcc1/callbacks.hh
@@ -42,6 +42,9 @@ namespace cc1_plugin
callbacks ();
~callbacks ();
+ callbacks (const callbacks &) = delete;
+ callbacks &operator= (const callbacks &) = delete;
+
// Add a callback named NAME. FUNC is the function to call when
// this method is invoked.
void add_callback (const char *name, callback_ftype *func);
@@ -52,10 +55,6 @@ namespace cc1_plugin
private:
- // Declared but not defined to avoid use.
- callbacks (const callbacks &);
- callbacks &operator= (const callbacks &);
-
// The mapping.
htab_t m_registry;
};