@@ -99,7 +99,8 @@ class AttributePathExpandIterator
99
99
ConcreteAttributePath mOutputPath ;
100
100
};
101
101
102
- AttributePathExpandIterator (DataModel::Provider * dataModel, Position & position) : mDataModelProvider (dataModel), mPosition (position)
102
+ AttributePathExpandIterator (DataModel::Provider * dataModel, Position & position) :
103
+ mDataModelProvider (dataModel), mPosition (position)
103
104
{}
104
105
105
106
// This class may not be copied. A new one should be created when needed and they
@@ -184,24 +185,24 @@ class AttributePathExpandIterator
184
185
class PeekAttributePathExpandIterator
185
186
{
186
187
public:
187
- PeekAttributePathExpandIterator (DataModel::Provider * dataModel, AttributePathExpandIterator::Position & state ) :
188
- mAttributePathExpandIterator (dataModel, state ), mStateTarget (state ), mOldState (state )
188
+ PeekAttributePathExpandIterator (DataModel::Provider * dataModel, AttributePathExpandIterator::Position & position ) :
189
+ mAttributePathExpandIterator (dataModel, position ), mPositionTarget (position ), mOldPosition (position )
189
190
{}
190
- ~PeekAttributePathExpandIterator () { mStateTarget = mOldState ; }
191
+ ~PeekAttributePathExpandIterator () { mPositionTarget = mOldPosition ; }
191
192
192
193
bool Next (ConcreteAttributePath & path)
193
194
{
194
- mOldState = mStateTarget ;
195
+ mOldPosition = mPositionTarget ;
195
196
return mAttributePathExpandIterator .Next (path);
196
197
}
197
198
198
199
// / Marks the current iteration completed (so peek does not actually roll back)
199
- void MarkCompleted () { mOldState = mStateTarget ; }
200
+ void MarkCompleted () { mOldPosition = mPositionTarget ; }
200
201
201
202
private:
202
203
AttributePathExpandIterator mAttributePathExpandIterator ;
203
- AttributePathExpandIterator::Position & mStateTarget ;
204
- AttributePathExpandIterator::Position mOldState ;
204
+ AttributePathExpandIterator::Position & mPositionTarget ;
205
+ AttributePathExpandIterator::Position mOldPosition ;
205
206
};
206
207
207
208
} // namespace app
0 commit comments