loplugin:sequenceloop in shell..sot
Change-Id: I40e2a1be0ce7df627d3820192d24821ddd7c3e2f Reviewed-on: https://gerrit.libreoffice.org/77527 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -237,7 +237,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
|
|||||||
|
|
||||||
// Append carbon copy recipients set in the message
|
// Append carbon copy recipients set in the message
|
||||||
Sequence< OUString > aStringList = xSimpleMailMessage->getCcRecipient();
|
Sequence< OUString > aStringList = xSimpleMailMessage->getCcRecipient();
|
||||||
for ( const auto& rString : aStringList )
|
for ( const auto& rString : std::as_const(aStringList) )
|
||||||
{
|
{
|
||||||
aBuffer.append(" --cc ");
|
aBuffer.append(" --cc ");
|
||||||
appendShellWord(aBuffer, rString, false);
|
appendShellWord(aBuffer, rString, false);
|
||||||
@@ -245,7 +245,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
|
|||||||
|
|
||||||
// Append blind carbon copy recipients set in the message
|
// Append blind carbon copy recipients set in the message
|
||||||
aStringList = xSimpleMailMessage->getBccRecipient();
|
aStringList = xSimpleMailMessage->getBccRecipient();
|
||||||
for ( const auto& rString : aStringList )
|
for ( const auto& rString : std::as_const(aStringList) )
|
||||||
{
|
{
|
||||||
aBuffer.append(" --bcc ");
|
aBuffer.append(" --bcc ");
|
||||||
appendShellWord(aBuffer, rString, false);
|
appendShellWord(aBuffer, rString, false);
|
||||||
@@ -260,7 +260,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
|
|||||||
|
|
||||||
// Append attachments set in the message
|
// Append attachments set in the message
|
||||||
aStringList = xSimpleMailMessage->getAttachement();
|
aStringList = xSimpleMailMessage->getAttachement();
|
||||||
for ( const auto& rString : aStringList )
|
for ( const auto& rString : std::as_const(aStringList) )
|
||||||
{
|
{
|
||||||
OUString aSystemPath;
|
OUString aSystemPath;
|
||||||
if ( FileBase::E_None == FileBase::getSystemPathFromFileURL(rString, aSystemPath) )
|
if ( FileBase::E_None == FileBase::getSystemPathFromFileURL(rString, aSystemPath) )
|
||||||
|
@@ -397,7 +397,7 @@ void ShapeImporter::importPolygons(uno::Reference<beans::XPropertySet> const& xP
|
|||||||
getPropertyValue( nLineColor, xPropSet, "LineColor" );
|
getPropertyValue( nLineColor, xPropSet, "LineColor" );
|
||||||
getPropertyValue( fLineWidth, xPropSet, "LineWidth" );
|
getPropertyValue( fLineWidth, xPropSet, "LineWidth" );
|
||||||
|
|
||||||
drawing::PointSequence* pOuterSequence = aRetval.getArray();
|
const drawing::PointSequence* pOuterSequence = aRetval.getArray();
|
||||||
|
|
||||||
::basegfx::B2DPolygon aPoly;
|
::basegfx::B2DPolygon aPoly;
|
||||||
basegfx::B2DPoint aPoint;
|
basegfx::B2DPoint aPoint;
|
||||||
|
@@ -841,7 +841,7 @@ void SlideImpl::applyShapeAttributes(
|
|||||||
const css::uno::Reference< css::animations::XAnimationNode >& xRootAnimationNode,
|
const css::uno::Reference< css::animations::XAnimationNode >& xRootAnimationNode,
|
||||||
bool bInitial) const
|
bool bInitial) const
|
||||||
{
|
{
|
||||||
uno::Sequence< animations::TargetProperties > aProps(
|
const uno::Sequence< animations::TargetProperties > aProps(
|
||||||
TargetPropertiesCreator::createTargetProperties( xRootAnimationNode, bInitial ) );
|
TargetPropertiesCreator::createTargetProperties( xRootAnimationNode, bInitial ) );
|
||||||
|
|
||||||
// apply extracted values to our shapes
|
// apply extracted values to our shapes
|
||||||
|
@@ -1941,7 +1941,7 @@ bool UCBStorage_Impl::Insert( ::ucbhelper::Content *pContent )
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Sequence< ContentInfo > aInfo = pContent->queryCreatableContentsInfo();
|
const Sequence< ContentInfo > aInfo = pContent->queryCreatableContentsInfo();
|
||||||
if ( !aInfo.hasElements() )
|
if ( !aInfo.hasElements() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@@ -236,7 +236,7 @@ void OLESimpleStorage::InsertNameAccessToStorage_Impl( BaseStorage* pStorage, co
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
uno::Sequence< OUString > aElements = xNameAccess->getElementNames();
|
const uno::Sequence< OUString > aElements = xNameAccess->getElementNames();
|
||||||
for ( const auto& rElement : aElements )
|
for ( const auto& rElement : aElements )
|
||||||
{
|
{
|
||||||
uno::Reference< io::XInputStream > xInputStream;
|
uno::Reference< io::XInputStream > xInputStream;
|
||||||
|
Reference in New Issue
Block a user