Related: tdf#136985 SfxStringListItem::GetString() crash in empty case
probably since...
commit a573b8b216
Date: Sat May 21 16:14:56 2011 -0430
Replace List for std::vector in SfxStringListItem.
Change-Id: I7060b5693ba08fa5f70cc5cb3ae1b7a4722a31a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103408
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -125,13 +125,12 @@ OUString SfxStringListItem::GetString()
|
||||
OUStringBuffer aStr;
|
||||
if ( mpList )
|
||||
{
|
||||
std::vector<OUString>::const_iterator iter = mpList->begin();
|
||||
for (;;)
|
||||
for (auto iter = mpList->begin(), end = mpList->end(); iter != end;)
|
||||
{
|
||||
aStr.append(*iter);
|
||||
++iter;
|
||||
|
||||
if (iter == mpList->end())
|
||||
if (iter == end)
|
||||
break;
|
||||
|
||||
aStr.append("\r");
|
||||
|
Reference in New Issue
Block a user