Commit 68168a05 authored by Jan Möbius's avatar Jan Möbius

Initializer lists

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17417 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d03cd838
...@@ -56,17 +56,12 @@ ...@@ -56,17 +56,12 @@
namespace PluginFunctions { namespace PluginFunctions {
BaseObjectIterator::BaseObjectIterator( IteratorRestriction _restriction , DataType _dataType) { BaseObjectIterator::BaseObjectIterator( IteratorRestriction _restriction , DataType _dataType) :
pos_(0),
// Initialize with invalid pos dataType_(_dataType),
pos_ = 0; restriction_(_restriction)
// Store the restriction for the operator ( Source/Target )
restriction_ = _restriction;
// Store the requested DataType
dataType_ = _dataType;
{
// Start at the root Node // Start at the root Node
BaseObject* currentPos = objectRoot(); BaseObject* currentPos = objectRoot();
...@@ -104,11 +99,11 @@ BaseObjectIterator::BaseObjectIterator( IteratorRestriction _restriction , DataT ...@@ -104,11 +99,11 @@ BaseObjectIterator::BaseObjectIterator( IteratorRestriction _restriction , DataT
} }
} }
BaseObjectIterator::BaseObjectIterator(BaseObject* pos, IteratorRestriction _restriction , DataType _data) BaseObjectIterator::BaseObjectIterator(BaseObject* pos, IteratorRestriction _restriction , DataType _data) :
pos_(pos),
dataType_(_data),
restriction_(_restriction)
{ {
restriction_ = _restriction;
pos_ = pos;
dataType_ = _data;
}; };
......
...@@ -56,16 +56,12 @@ ...@@ -56,16 +56,12 @@
namespace PluginFunctions { namespace PluginFunctions {
ObjectIterator::ObjectIterator( IteratorRestriction _restriction , DataType _dataType) { ObjectIterator::ObjectIterator( IteratorRestriction _restriction , DataType _dataType):
pos_(0),
// Initialize with invalid pos dataType_(_dataType),
pos_ = 0; restriction_(_restriction)
{
// Store the restriction for the operator ( Source/Target )
restriction_ = _restriction;
// Store the requested DataType
dataType_ = _dataType;
// Start at the root Node // Start at the root Node
BaseObject* currentPos = objectRoot(); BaseObject* currentPos = objectRoot();
...@@ -100,11 +96,11 @@ ObjectIterator::ObjectIterator( IteratorRestriction _restriction , DataType _dat ...@@ -100,11 +96,11 @@ ObjectIterator::ObjectIterator( IteratorRestriction _restriction , DataType _dat
} }
} }
ObjectIterator::ObjectIterator(BaseObjectData* pos, IteratorRestriction _restriction , DataType _data) ObjectIterator::ObjectIterator(BaseObjectData* pos, IteratorRestriction _restriction , DataType _data) :
pos_(pos),
dataType_(_data),
restriction_(_restriction)
{ {
restriction_ = _restriction;
pos_ = pos;
dataType_ = _data;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment