Kaydet (Commit) 04112bce authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:sequentialassign in filter..fpicker

Change-Id: I4ba0e1e982897bd570612f6cda8ba1e6a9fa5dbd
Reviewed-on: https://gerrit.libreoffice.org/70700
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 8feca893
......@@ -549,8 +549,7 @@ void FilterCache::addStatePropsToItem( EItemType eType,
void FilterCache::removeStatePropsFromItem(CacheItem& rItem)
{
CacheItem::iterator pIt;
pIt = rItem.find(PROPNAME_FINALIZED);
CacheItem::iterator pIt = rItem.find(PROPNAME_FINALIZED);
if (pIt != rItem.end())
rItem.erase(pIt);
pIt = rItem.find(PROPNAME_MANDATORY);
......@@ -1575,8 +1574,7 @@ CacheItem FilterCache::impl_loadItem(const css::uno::Reference< css::container::
{
css::uno::Reference< css::beans::XMultiPropertySet >
xPropSet( xItem, css::uno::UNO_QUERY_THROW);
css::uno::Sequence< css::uno::Any > aValues;
aValues = xPropSet->getPropertyValues(rNames);
css::uno::Sequence< css::uno::Any > aValues = xPropSet->getPropertyValues(rNames);
for (sal_Int32 i = 0; i < aValues.getLength(); i++)
aItem[rNames[i]] = aValues[i];
......@@ -1600,8 +1598,7 @@ CacheItem FilterCache::impl_loadItem(const css::uno::Reference< css::container::
{
css::uno::Reference< css::beans::XMultiPropertySet >
xPropSet( xItem, css::uno::UNO_QUERY_THROW);
css::uno::Sequence< css::uno::Any > aValues;
aValues = xPropSet->getPropertyValues(rNames);
css::uno::Sequence< css::uno::Any > aValues = xPropSet->getPropertyValues(rNames);
for (sal_Int32 i = 0; i < rNames.getLength(); i++)
{
......
......@@ -224,8 +224,7 @@ void DXF2GDIMetaFile::DrawLineEntity(const DXFLineEntity & rE, const DXFTransfor
rTransform.Transform(rE.aP0,aP0);
rTransform.Transform(rE.aP1,aP1);
DXFLineInfo aDXFLineInfo;
aDXFLineInfo=GetEntityDXFLineInfo(rE);
DXFLineInfo aDXFLineInfo=GetEntityDXFLineInfo(rE);
LineInfo aLineInfo;
aLineInfo = rTransform.Transform(aDXFLineInfo);
......
......@@ -198,8 +198,7 @@ void Impl_OlePres::Write( SvStream & rStm )
if( MapUnit::Map100thMM != nMU )
{
Size aPrefS( pMtf->GetPrefSize() );
Size aS( aPrefS );
aS = OutputDevice::LogicToLogic(aS, MapMode(nMU), MapMode(MapUnit::Map100thMM));
Size aS = OutputDevice::LogicToLogic(aPrefS, MapMode(nMU), MapMode(MapUnit::Map100thMM));
pMtf->Scale( Fraction( aS.Width(), aPrefS.Width() ),
Fraction( aS.Height(), aPrefS.Height() ) );
......
......@@ -2441,8 +2441,7 @@ bool SdrPowerPointImport::SeekToCurrentPage( DffRecordHeader* pRecHd ) const
sal_uLong nPersist = (*pList)[ nCurrentPageNum ].aPersistAtom.nPsrReference;
if ( nPersist > 0 && nPersist < nPersistPtrCnt )
{
sal_uLong nFPos = 0;
nFPos = pPersistPtr[ nPersist ];
sal_uLong nFPos = pPersistPtr[ nPersist ];
if ( nFPos < nStreamLen )
{
rStCtrl.Seek( nFPos );
......
......@@ -1296,8 +1296,7 @@ void SVGFilter::implExportAnimations()
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "class", "Animations" );
SvXMLElementExport aDefsElem( *mpSVGExport, XML_NAMESPACE_NONE, "defs", true, true );
rtl::Reference< xmloff::AnimationsExporter > xAnimationsExporter;
xAnimationsExporter = new xmloff::AnimationsExporter( *mpSVGExport, xProps );
rtl::Reference< xmloff::AnimationsExporter > xAnimationsExporter = new xmloff::AnimationsExporter( *mpSVGExport, xProps );
xAnimationsExporter->prepare( xRootNode );
xAnimationsExporter->exportAnimations( xRootNode );
}
......
......@@ -169,9 +169,7 @@ OUString T602ImportFilter::detect( Sequence<PropertyValue>& Descriptor)
css::uno::Sequence< sal_Int8 > aData;
const size_t numBytes = 4;
size_t numBytesRead = 0;
numBytesRead = mxInputStream->readSomeBytes (aData, numBytes);
size_t numBytesRead = mxInputStream->readSomeBytes (aData, numBytes);
if ((numBytesRead != numBytes) || (aData[0] != '@') ||
(aData[1] != 'C') || (aData[2] != 'T') || (aData[3] != ' '))
......
......@@ -102,8 +102,7 @@ void XMLFilterTabPageXSLT::SetURL( URLBox& rURLBox, const OUString& rURL )
}
else if( !rURL.isEmpty() )
{
OUString aURL( rURL );
aURL = URIHelper::SmartRel2Abs( INetURLObject(sInstPath), aURL, Link<OUString *, bool>(), false );
OUString aURL = URIHelper::SmartRel2Abs( INetURLObject(sInstPath), rURL, Link<OUString *, bool>(), false );
osl::FileBase::getSystemPathFromFileURL( aURL, aPath );
rURLBox.SetBaseURL( aURL );
......
......@@ -57,9 +57,7 @@ OComponentEventThread::~OComponentEventThread()
Any SAL_CALL OComponentEventThread::queryInterface(const Type& _rType)
{
Any aReturn;
aReturn = OWeakObject::queryInterface(_rType);
Any aReturn = OWeakObject::queryInterface(_rType);
if (!aReturn.hasValue())
aReturn = ::cppu::queryInterface(_rType,
......
......@@ -519,8 +519,7 @@ namespace frm
if ( m_aText != aText )
{
// check the text with the SQL-Parser
OUString aNewText(aText);
aNewText = aNewText.trim();
OUString aNewText = aText.trim();
if ( !aNewText.isEmpty() )
{
::dbtools::OPredicateInputController aPredicateInput( m_xContext, m_xConnection, getParseContext() );
......
......@@ -54,8 +54,7 @@ OUString getResource(const char* pResourceId,
OUString sResource = frm::ResourceManager::loadString(pResourceId);
OSL_ENSURE( !sResource.isEmpty(), "resource not found?" );
OUString sString( sResource );
sString = sString.replaceAll( "$1", rInfo1 );
OUString sString = sResource.replaceAll( "$1", rInfo1 );
sString = sString.replaceAll( "$2", rInfo2 );
sString = sString.replaceAll( "$3", rInfo3 );
return sString;
......
......@@ -2235,13 +2235,11 @@ bool SvtFileDialog::IsolateFilterFromPath_Impl( OUString& rPath, OUString& rFilt
}
// cut off filter
rFilter = aReversePath;
rFilter = rFilter.copy( 0, nPathTokenPos );
rFilter = aReversePath.copy( 0, nPathTokenPos );
rFilter = comphelper::string::reverseString(rFilter);
// determine folder
rPath = aReversePath;
rPath = rPath.copy( nPathTokenPos );
rPath = aReversePath.copy( nPathTokenPos );
rPath = comphelper::string::reverseString(rPath);
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment