2
0
Эх сурвалжийг харах

Make Vector::Buffer() and PODVector::Buffer() public.

Eugene Kozlov 9 жил өмнө
parent
commit
c4424eb514

+ 2 - 2
Source/Urho3D/Container/Vector.h

@@ -477,10 +477,10 @@ public:
     /// Return whether vector is empty.
     /// Return whether vector is empty.
     bool Empty() const { return size_ == 0; }
     bool Empty() const { return size_ == 0; }
 
 
-private:
     /// Return the buffer with right type.
     /// Return the buffer with right type.
     T* Buffer() const { return reinterpret_cast<T*>(buffer_); }
     T* Buffer() const { return reinterpret_cast<T*>(buffer_); }
 
 
+private:
     /// Resize the vector and create/remove new elements as necessary.
     /// Resize the vector and create/remove new elements as necessary.
     void Resize(unsigned newSize, const T* src)
     void Resize(unsigned newSize, const T* src)
     {
     {
@@ -1017,10 +1017,10 @@ public:
     /// Return whether vector is empty.
     /// Return whether vector is empty.
     bool Empty() const { return size_ == 0; }
     bool Empty() const { return size_ == 0; }
 
 
-private:
     /// Return the buffer with right type.
     /// Return the buffer with right type.
     T* Buffer() const { return reinterpret_cast<T*>(buffer_); }
     T* Buffer() const { return reinterpret_cast<T*>(buffer_); }
 
 
+private:
     /// Move a range of elements within the vector.
     /// Move a range of elements within the vector.
     void MoveRange(unsigned dest, unsigned src, unsigned count)
     void MoveRange(unsigned dest, unsigned src, unsigned count)
     {
     {