diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-03-22 02:09:38 -0700 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-04-22 16:01:44 +0200 |
commit | 8f24f1706b471b10de7e252023ee785f70c4e2e2 (patch) | |
tree | dc2c24efef7350db81f53c7cc1573dc87939913b | |
parent | 99427fbae7a810968c2058d068b1bef138bc3277 (diff) |
GDBus GIO: mark class as noncopyable
The class is noncopyable because of a plain pointer. Klocwork warned
about that.
-rw-r--r-- | src/gdbusxx/test/example.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gdbusxx/test/example.cpp b/src/gdbusxx/test/example.cpp index 858fed98..f94fb368 100644 --- a/src/gdbusxx/test/example.cpp +++ b/src/gdbusxx/test/example.cpp @@ -33,6 +33,8 @@ #include <memory> #include <iostream> +#include <boost/noncopyable.hpp> + namespace GDBusCXX { struct args { @@ -45,7 +47,7 @@ static void hello_global() {} class Test { typedef boost::shared_ptr< Result1<const std::string&> > string_result; - struct async + struct async : private boost::noncopyable { async(const boost::shared_ptr<Watch> &watch, Watch *watch2, const string_result &result): m_watch(watch), |