src/ldobjectiterator.h

changeset 1217
314e12e23c3a
parent 1006
a6b462051ae0
child 1222
34def2630300
--- a/src/ldobjectiterator.h	Thu Jan 04 19:40:52 2018 +0200
+++ b/src/ldobjectiterator.h	Thu Jan 04 19:44:26 2018 +0200
@@ -24,16 +24,16 @@
 class LDObjectIterator
 {
 public:
-	LDObjectIterator (LDDocument* doc) :
-		m_list (doc->objects()),
-		m_i (-1)
+	LDObjectIterator(LDDocument* doc) :
+		m_list(doc->objects()),
+		m_i(-1)
 	{
 		seekTillValid();
 	}
 
-	LDObjectIterator (const LDObjectList& objs) :
-		m_list (objs),
-		m_i (-1)
+	LDObjectIterator(const LDObjectList& objs) :
+		m_list(objs),
+		m_i(-1)
 	{
 		seekTillValid();
 	}
@@ -45,7 +45,7 @@
 
 	T* get() const
 	{
-		return static_cast<T*> (m_list[m_i]);
+		return static_cast<T*>(m_list[m_i]);
 	}
 
 	bool isValid() const
@@ -53,7 +53,7 @@
 		return not outOfBounds() and get()->type() == T::SubclassType;
 	}
 
-	void seek (int i)
+	void seek(int i)
 	{
 		m_i = i;
 	}
@@ -90,7 +90,7 @@
 		seekTillValid();
 	}
 
-	void operator++ (int)
+	void operator++(int)
 	{
 		seekTillValid(); 
 	}
@@ -100,7 +100,7 @@
 		rewindTillValid();
 	}
 
-	void operator-- (int)
+	void operator--(int)
 	{
 		rewindTillValid();
 	}
@@ -116,11 +116,11 @@
 };
 
 template<typename T, typename R>
-QVector<T*> filterByType (const R& stuff)
+QVector<T*> filterByType(const R& stuff)
 {
 	QVector<T*> result;
 
-	for (LDObjectIterator<T> it (stuff); it.isValid(); ++it)
+	for (LDObjectIterator<T> it(stuff); it.isValid(); ++it)
 		result << it;
 
 	return result;

mercurial