Module: check_mk
Branch: master
Commit: 1ee3eeef40cb4d669e16ca494115711f48824e9c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ee3eeef40cb4d…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 10 09:10:53 2015 +0100
cppcheck-induced cleanup: Disable copy/assignment for unsuitable class.
---
livestatus/src/OutputBuffer.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/livestatus/src/OutputBuffer.h b/livestatus/src/OutputBuffer.h
index df5e7bd..eb0fe56 100644
--- a/livestatus/src/OutputBuffer.h
+++ b/livestatus/src/OutputBuffer.h
@@ -52,6 +52,11 @@ class OutputBuffer
std::string _error_message;
bool _do_keepalive;
+ // We use dynamically allocated memory => disable copy/assignment
+ // TODO: Just use vector instead of all this manual fiddling...
+ OutputBuffer(const OutputBuffer&);
+ OutputBuffer& operator=(const OutputBuffer&);
+
public:
OutputBuffer();
~OutputBuffer();