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

loplugin:sequentialassign in accessiblity..canvas

Change-Id: I984717138ac85c1af5fc363fda06f5c2b5497965
Reviewed-on: https://gerrit.libreoffice.org/70641
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 11e381c5
......@@ -186,10 +186,7 @@ namespace accessibility
Locale AccessibleIconChoiceCtrlEntry::implGetLocale()
{
Locale aLocale;
aLocale = Application::GetSettings().GetUILanguageTag().getLocale();
return aLocale;
return Application::GetSettings().GetUILanguageTag().getLocale();
}
void AccessibleIconChoiceCtrlEntry::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
......
......@@ -199,10 +199,7 @@ namespace accessibility
Locale AccessibleListBoxEntry::implGetLocale()
{
Locale aLocale;
aLocale = Application::GetSettings().GetUILanguageTag().getLocale();
return aLocale;
return Application::GetSettings().GetUILanguageTag().getLocale();
}
void AccessibleListBoxEntry::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
{
......
......@@ -998,8 +998,7 @@ bool implImportDialog(weld::Window* pWin, const OUString& rCurPath, const Script
{
const std::shared_ptr<LocalizationMgr>& pCurMgr = pShell->GetCurLocalizationMgr();
lang::Locale aFirstLocale;
aFirstLocale = aOnlyInImportLanguages[0];
lang::Locale aFirstLocale = aOnlyInImportLanguages[0];
if( nOnlyInImportLanguageCount > 1 )
{
// Check if import default belongs to only import languages and use it then
......@@ -1244,8 +1243,7 @@ void DialogWindow::InitSettings()
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
vcl::Font aFont;
aFont = rStyleSettings.GetFieldFont();
vcl::Font aFont = rStyleSettings.GetFieldFont();
SetPointFont(*this, aFont);
SetTextColor( rStyleSettings.GetFieldTextColor() );
......
......@@ -697,8 +697,7 @@ void LibPage::InsertLib()
// filter
OUString aTitle(IDEResId(RID_STR_BASIC));
OUString aFilter;
aFilter = "*.sbl;*.xlc;*.xlb" // library files
OUString aFilter = "*.sbl;*.xlc;*.xlb" // library files
";*.sdw;*.sxw;*.odt" // text
";*.vor;*.stw;*.ott" // text template
";*.sgl;*.sxg;*.odm" // master document
......@@ -1159,8 +1158,7 @@ void LibPage::ExportAsPackage( const OUString& aLibName )
// filter
OUString aTitle(IDEResId(RID_STR_PACKAGE_BUNDLE));
OUString aFilter;
aFilter = "*.oxt" ; // library files
OUString aFilter = "*.oxt" ; // library files
xFP->appendFilter( aTitle, aFilter );
// set display directory and filter
......
......@@ -453,7 +453,6 @@ namespace basegfx
}
// area clipping
B2DPolyPolygon aMergePolyPolygonA(rClip);
// First solve all polygon-self and polygon-polygon intersections.
// Also get rid of some not-needed polygons (neutral, no area -> when
......@@ -461,7 +460,7 @@ namespace basegfx
// Now it is possible to correct the orientations in the cut-free
// polygons to values corresponding to painting the utils::PolyPolygon with
// a XOR-WindingRule.
aMergePolyPolygonA = solveCrossovers(aMergePolyPolygonA);
B2DPolyPolygon aMergePolyPolygonA = solveCrossovers(rClip);
aMergePolyPolygonA = stripNeutralPolygons(aMergePolyPolygonA);
aMergePolyPolygonA = correctOrientations(aMergePolyPolygonA);
......@@ -472,10 +471,9 @@ namespace basegfx
aMergePolyPolygonA.flip();
}
B2DPolyPolygon aMergePolyPolygonB(rCandidate);
// prepare 2nd source polygon in same way
aMergePolyPolygonB = solveCrossovers(aMergePolyPolygonB);
B2DPolyPolygon aMergePolyPolygonB = solveCrossovers(rCandidate);
aMergePolyPolygonB = stripNeutralPolygons(aMergePolyPolygonB);
aMergePolyPolygonB = correctOrientations(aMergePolyPolygonB);
......
......@@ -38,8 +38,7 @@ namespace basegfx { namespace utils
sal_Int32(0)) * (1.0+fSpace);
for( sal_Int32 i=0; i<aNum.getLength(); ++i )
{
B2DPolyPolygon aCurr;
aCurr=createSevenSegmentPolyPolygon(aNum[i],
B2DPolyPolygon aCurr=createSevenSegmentPolyPolygon(aNum[i],
bLitSegments);
aMat.identity();
......
......@@ -48,8 +48,7 @@ namespace basegfx
B3DVector B3DVector::getPerpendicular(const B3DVector& rNormalizedVec) const
{
B3DVector aNew(*this);
aNew = cross(aNew, rNormalizedVec);
B3DVector aNew = cross(*this, rNormalizedVec);
aNew.normalize();
return aNew;
}
......
......@@ -3328,8 +3328,7 @@ SbxVariable* SbUnoClass::Find( const OUString& rName, SbxClassType )
{
try
{
Any aAny;
aAny = xField->get( aAny );
Any aAny = xField->get( aAny );
// Convert to Sbx
pRes = new SbxVariable( SbxVARIANT );
......@@ -3788,8 +3787,7 @@ void BasicAllListener_Impl::firing_impl( const AllEventObject& Event, Any* pRet
if( xSbxObj.is() )
{
OUString aMethodName = aPrefixName;
aMethodName = aMethodName + Event.MethodName;
OUString aMethodName = aPrefixName + Event.MethodName;
SbxVariable * pP = xSbxObj.get();
while( pP->GetParent() )
......
......@@ -2967,9 +2967,7 @@ void SfxLibrary::implSetModified( bool _bIsModified )
// Methods XInterface
Any SAL_CALL SfxLibrary::queryInterface( const Type& rType )
{
Any aRet;
aRet =
Any aRet =
::cppu::queryInterface(
rType,
static_cast< XContainer * >( this ),
......
......@@ -332,8 +332,7 @@ namespace canvas
// be transformed by the overall transform and uv coordinates will
// be calculated from the result, and this is why we need to use
// integer coordinates here...
basegfx::B2DHomMatrix aTransform;
aTransform = aTransform * rTransform;
basegfx::B2DHomMatrix aTransform = rTransform;
aTransform.translate(::basegfx::fround(rPos.getX()),
::basegfx::fround(rPos.getY()));
......
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