[Bf-blender-cvs] [b831392128f] nodes_playground: use tabs

Jacques Lucke noreply at git.blender.org
Sun Jan 6 17:25:38 CET 2019


Commit: b831392128f926b1f3f64cb4aee8969769e207d2
Author: Jacques Lucke
Date:   Sat Jan 5 12:11:17 2019 +0100
Branches: nodes_playground
https://developer.blender.org/rBb831392128f926b1f3f64cb4aee8969769e207d2

use tabs

===================================================================

M	source/blender/modifiers/intern/ArraySet.hpp

===================================================================

diff --git a/source/blender/modifiers/intern/ArraySet.hpp b/source/blender/modifiers/intern/ArraySet.hpp
index 5e6684a162a..2db9d00739b 100644
--- a/source/blender/modifiers/intern/ArraySet.hpp
+++ b/source/blender/modifiers/intern/ArraySet.hpp
@@ -5,57 +5,57 @@ template<typename T>
 class
 ArraySet {
 private:
-    using entries_t = std::vector<T>;
-    entries_t entries;
+	using entries_t = std::vector<T>;
+	entries_t entries;
 
 public:
-    using const_iterator = typename entries_t::const_iterator;
-
-    ArraySet() {};
-
-    ArraySet(std::vector<T> values)
-    {
-        for (T value : values) {
-            this->add(value);
-        }
-    }
-
-
-    ArraySet(std::initializer_list<T> values)
-    {
-        for (T value : values) {
-            this->add(value);
-        }
-    }
-
-    void add(T value)
-    {
-        if (!this->contains(value)) {
-            this->entries.push_back(value);
-        }
-    }
-
-    bool contains(T value) const
-    {
-        for (T entry : this->entries) {
-            if (entry == value) return true;
-        }
-        return false;
-    }
-
-    T operator[](const int index) const
-    {
-        assert(index >= 0 && index < this->size());
-        return this->entries[index];
-    }
-
-    uint size() const
-    {
-        return this->entries.size();
-    }
-
-    const_iterator begin()
-    { return this->entries.begin(); }
-    const_iterator end()
-    { return this->entries.end(); }
+	using const_iterator = typename entries_t::const_iterator;
+
+	ArraySet() {};
+
+	ArraySet(std::vector<T> values)
+	{
+		for (T value : values) {
+			this->add(value);
+		}
+	}
+
+
+	ArraySet(std::initializer_list<T> values)
+	{
+		for (T value : values) {
+			this->add(value);
+		}
+	}
+
+	void add(T value)
+	{
+		if (!this->contains(value)) {
+			this->entries.push_back(value);
+		}
+	}
+
+	bool contains(T value) const
+	{
+		for (T entry : this->entries) {
+			if (entry == value) return true;
+		}
+		return false;
+	}
+
+	T operator[](const int index) const
+	{
+		assert(index >= 0 && index < this->size());
+		return this->entries[index];
+	}
+
+	uint size() const
+	{
+		return this->entries.size();
+	}
+
+	const_iterator begin()
+	{ return this->entries.begin(); }
+	const_iterator end()
+	{ return this->entries.end(); }
 };
\ No newline at end of file



More information about the Bf-blender-cvs mailing list