From 654cd3f89786e5c19cf26472ccf5a402a22ea661 Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Sun, 4 Sep 2011 07:08:23 -0400
Subject: [PATCH] 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.

---
 indra/llui/llview.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/indra/llui/llview.h b/indra/llui/llview.h
index 97151c4fb46..fcae75c447d 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 @@ class LLView : public LLMouseHandler, public LLMortician, public LLFocusableElem
 	//     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):
-- 
GitLab