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
parent
7215d1a9a9
commit
654cd3f897
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue