Subversion Repositories spk

Rev

Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 170 Rev 179
Line 19... Line 19...
19
		strNode->str = str;
19
		strNode->str = str;
20
		strNode->data = data;
20
		strNode->data = data;
21
		_lList->push_back(strNode);
21
		_lList->push_back(strNode);
22
	}
22
	}
23
 
23
 
-
 
24
	void CStringList::popFront()
-
 
25
	{
-
 
26
		if (!_lList->empty())
-
 
27
		{
-
 
28
			delete _lList->front();
-
 
29
			_lList->removeAt(0);
-
 
30
		}
-
 
31
	}
24
	void CStringList::popBack()
32
	void CStringList::popBack()
25
	{
33
	{
26
		if (!_lList->empty())
34
		if (!_lList->empty())
27
		{
35
		{
28
			delete _lList->back();
36
			delete _lList->back();
Line 221... Line 229...
221
		return false;
229
		return false;
222
	}
230
	}
223
 
231
 
224
	void CStringList::removeAt(int at)
232
	void CStringList::removeAt(int at)
225
	{
233
	{
-
 
234
		if (!_lList->empty())
-
 
235
		{
-
 
236
			auto var = _lList->get(at);
-
 
237
			if (var)
-
 
238
				delete var;
226
		_lList->removeAt(at);
239
			_lList->removeAt(at);
-
 
240
		}
227
	}
241
	}
228
 
242
 
229
	CStringListIterator CStringList::remove(CStringListIterator itr)
243
	CStringListIterator CStringList::remove(CStringListIterator itr)
230
	{
244
	{
231
		return _lList->remove(itr);
245
		return _lList->remove(itr);