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 @@
namespace PluginFunctions {
BaseObjectIterator::BaseObjectIterator( IteratorRestriction _restriction , DataType _dataType) {
// Initialize with invalid pos
pos_ = 0;
// Store the restriction for the operator ( Source/Target )
restriction_ = _restriction;
// Store the requested DataType
dataType_ = _dataType;
BaseObjectIterator::BaseObjectIterator( IteratorRestriction _restriction , DataType _dataType) :
pos_(0),
dataType_(_dataType),
restriction_(_restriction)
{
// Start at the root Node
BaseObject* currentPos = objectRoot();
......@@ -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 @@
namespace PluginFunctions {
ObjectIterator::ObjectIterator( IteratorRestriction _restriction , DataType _dataType) {
// Initialize with invalid pos
pos_ = 0;
// Store the restriction for the operator ( Source/Target )
restriction_ = _restriction;
ObjectIterator::ObjectIterator( IteratorRestriction _restriction , DataType _dataType):
pos_(0),
dataType_(_dataType),
restriction_(_restriction)
{
// Store the requested DataType
dataType_ = _dataType;
// Start at the root Node
BaseObject* currentPos = objectRoot();
......@@ -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