File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -815,13 +815,13 @@ LLTerrainPaintQueue LLTerrainPaintMap::convertBrushQueueToPaintRGB(const LLViewe
815
815
}
816
816
817
817
template <typename T>
818
- LLTerrainQueue<T>::LLTerrainQueue(LLTerrainQueue<T>& other)
818
+ LLTerrainQueue<T>::LLTerrainQueue(const LLTerrainQueue<T>& other)
819
819
{
820
820
*this = other;
821
821
}
822
822
823
823
template <typename T>
824
- LLTerrainQueue<T>& LLTerrainQueue<T>::operator =(LLTerrainQueue<T>& other)
824
+ LLTerrainQueue<T>& LLTerrainQueue<T>::operator =(const LLTerrainQueue<T>& other)
825
825
{
826
826
mList = other.mList ;
827
827
return *this ;
@@ -890,14 +890,14 @@ LLTerrainPaintQueue::LLTerrainPaintQueue(U8 components)
890
890
llassert (mComponents == LLTerrainPaint::RGB || mComponents == LLTerrainPaint::RGBA);
891
891
}
892
892
893
- LLTerrainPaintQueue::LLTerrainPaintQueue (LLTerrainPaintQueue& other)
893
+ LLTerrainPaintQueue::LLTerrainPaintQueue (const LLTerrainPaintQueue& other)
894
894
: LLTerrainQueue<LLTerrainPaint>(other)
895
895
, mComponents(other.mComponents )
896
896
{
897
897
llassert (mComponents == LLTerrainPaint::RGB || mComponents == LLTerrainPaint::RGBA);
898
898
}
899
899
900
- LLTerrainPaintQueue& LLTerrainPaintQueue::operator =(LLTerrainPaintQueue& other)
900
+ LLTerrainPaintQueue& LLTerrainPaintQueue::operator =(const LLTerrainPaintQueue& other)
901
901
{
902
902
LLTerrainQueue<LLTerrainPaint>::operator =(other);
903
903
mComponents = other.mComponents ;
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ class LLTerrainQueue
65
65
{
66
66
public:
67
67
LLTerrainQueue () = default ;
68
- LLTerrainQueue (LLTerrainQueue<T>& other);
69
- LLTerrainQueue& operator =(LLTerrainQueue<T>& other);
68
+ LLTerrainQueue (const LLTerrainQueue<T>& other);
69
+ LLTerrainQueue& operator =(const LLTerrainQueue<T>& other);
70
70
71
71
bool enqueue (std::shared_ptr<T>& t, bool dry_run = false );
72
72
size_t size () const ;
@@ -113,8 +113,8 @@ class LLTerrainPaintQueue : public LLTerrainQueue<LLTerrainPaint>
113
113
LLTerrainPaintQueue () = delete ;
114
114
// components determines what type of LLTerrainPaint is allowed. Must be 3 (RGB) or 4 (RGBA)
115
115
LLTerrainPaintQueue (U8 components);
116
- LLTerrainPaintQueue (LLTerrainPaintQueue& other);
117
- LLTerrainPaintQueue& operator =(LLTerrainPaintQueue& other);
116
+ LLTerrainPaintQueue (const LLTerrainPaintQueue& other);
117
+ LLTerrainPaintQueue& operator =(const LLTerrainPaintQueue& other);
118
118
119
119
bool enqueue (LLTerrainPaint::ptr_t & paint, bool dry_run = false );
120
120
bool enqueue (LLTerrainPaintQueue& queue);
You can’t perform that action at this time.
0 commit comments