summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2011-09-04 07:08:23 -0400
committerNat Goodspeed <nat@lindenlab.com>2011-09-04 07:08:23 -0400
commit654cd3f89786e5c19cf26472ccf5a402a22ea661 (patch)
treee19e1c43e1756f9eb20d7a51cd45d15ee3242cc5
parent7215d1a9a9e6220d8744b662ab96feb41fc66ec8 (diff)
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.
-rw-r--r--indra/llui/llview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llview.h b/indra/llui/llview.h
index 97151c4fb4..fcae75c447 100644
--- a/indra/llui/llview.h
+++ b/indra/llui/llview.h
@@ -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):