CHOP-763: Make LLView::TemporaryDrilldownFunc boost::noncopyable.

Code review with Alain turned up the fact that TemporaryDrilldownFunc, simple
to the point of naivety, doesn't address the case of its being copied. Making
it boost::noncopyable should turn any such usage into a compile error.
master
Nat Goodspeed 2011-09-04 07:08:23 -04:00
parent 7215d1a9a9
commit 654cd3f897
1 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@
#include <list>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
class LLSD;
@ -614,7 +615,7 @@ public:
// LLView::TemporaryDrilldownFunc scoped_func(myfunctor);
// // ... test with myfunctor ...
// } // exiting block restores original LLView::sDrilldown
class TemporaryDrilldownFunc
class TemporaryDrilldownFunc: public boost::noncopyable
{
public:
TemporaryDrilldownFunc(const DrilldownFunc& func):