Simplify loop

Change-Id: I9c61e8b1d8552be25c3c78757b280b388cb98694
This commit is contained in:
Matteo Casalin
2015-05-12 23:52:18 +02:00
parent 7deb5886e4
commit 7dfe9f14d7

View File

@@ -2111,7 +2111,7 @@ bool SwTransferable::_PasteDDE( TransferableDataHelper& rData,
size_t i = 1;
size_t j;
OUString aName;
bool bAlreadyThere = false, bDoublePaste = false;
bool bDoublePaste = false;
const size_t nSize = rWrtShell.GetFieldTypeCount();
const ::utl::TransliterationWrapper& rColl = ::GetAppCmpStrIgnore();
@@ -2136,14 +2136,10 @@ bool SwTransferable::_PasteDDE( TransferableDataHelper& rData,
}
}
if( j == nSize )
bAlreadyThere = false;
else
{
bAlreadyThere = true;
i++;
}
break;
++i;
}
while( bAlreadyThere && !bDoublePaste );
while( !bDoublePaste );
if( !bDoublePaste )
{