diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 14:49:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 09:57:24 +0200 |
commit | 4250b25c6ae361359300ab6ccde27230f8e01039 (patch) | |
tree | 916a8420282928a92ede0760d696997550ae0840 /sd/source/ui | |
parent | 2ed9a2b641682d8612b5404bd3978ed049aa0266 (diff) |
teach unnecessaryparen loplugin about identifiers
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b
Reviewed-on: https://gerrit.libreoffice.org/39737
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationDialog.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/animations/CustomAnimationPane.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/outlview.cxx | 6 |
5 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 0e268a95a08a..4a0aadfd7e02 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -689,7 +689,7 @@ void RotationPropertyBox::setValue( const Any& rValue, const OUString& ) { double fValue = 0.0; rValue >>= fValue; - long nValue = (long)(fValue); + long nValue = (long)fValue; mpMetric->SetValue( nValue ); updateMenu(); } @@ -1651,7 +1651,7 @@ CustomAnimationDurationTabPage::CustomAnimationDurationTabPage(vcl::Window* pPar } else { - mpCBXDuration->SetValue( (fDuration)*100.0 ); + mpCBXDuration->SetValue( fDuration*100.0 ); } } diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index 2d362cb0ca80..6598d82377c6 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -675,7 +675,7 @@ void CustomAnimationPane::updateControls() if( bHasSpeed ) { - mpCBXDuration->SetValue( (fDuration)*100.0 ); + mpCBXDuration->SetValue( fDuration*100.0 ); } mpPBPropertyMore->Enable(); @@ -1826,7 +1826,7 @@ void CustomAnimationPane::onAdd() pDescriptor = *static_cast< CustomAnimationPresetPtr* >( pEntryData ); const double fDuration = pDescriptor->getDuration(); - mpCBXDuration->SetValue( (fDuration)*100.0 ); + mpCBXDuration->SetValue( fDuration*100.0 ); bool bHasSpeed = pDescriptor->getDuration() > 0.001; mpCBXDuration->Enable( bHasSpeed ); mpFTDuration->Enable( bHasSpeed ); diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index dacf464abea1..13f0db45e22a 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -858,7 +858,7 @@ bool DrawDocShell::GotoBookmark(const OUString& rBookmark) rBindings.Invalidate(SID_NAVIGATOR_PAGENAME); } - return (bFound); + return bFound; } // If object is marked return true else return false. diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index acfd3a18515b..987af603506e 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -328,7 +328,7 @@ void TableValueSet::Resize() if( !m_bModal ) { - WinBits nStyle = GetStyle() & ~(WB_VSCROLL); + WinBits nStyle = GetStyle() & ~WB_VSCROLL; if( nRowCount > nVisibleRowCount ) { nStyle |= WB_VSCROLL; @@ -758,7 +758,7 @@ void TableDesignWidget::FillDesignPreviewControl() sal_Int32 nRows = (nCount+2)/3; m_pValueSet->SetColCount(nCols); m_pValueSet->SetLineCount(nRows); - WinBits nStyle = m_pValueSet->GetStyle() & ~(WB_VSCROLL); + WinBits nStyle = m_pValueSet->GetStyle() & ~WB_VSCROLL; m_pValueSet->SetStyle(nStyle); Size aSize(m_pValueSet->GetOptimalSize()); aSize.Width() += (10 * nCols); diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index 7e4e6f1062ed..e17bf1877ba8 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -428,7 +428,7 @@ SdPage* OutlineView::InsertSlideForParagraph( Paragraph* pPara ) pPage->SetLayoutName(pExample->GetLayoutName()); // insert (page) - mrDoc.InsertPage(pPage, (sal_uInt16)(nTarget) * 2 + 1); + mrDoc.InsertPage(pPage, (sal_uInt16)nTarget * 2 + 1); if( isRecordingUndo() ) AddUndo(mrDoc.GetSdrUndoFactory().CreateUndoNewPage(*pPage)); @@ -467,7 +467,7 @@ SdPage* OutlineView::InsertSlideForParagraph( Paragraph* pPara ) pNotesPage->SetPageKind(PageKind::Notes); // insert (notes page) - mrDoc.InsertPage(pNotesPage, (sal_uInt16)(nTarget) * 2 + 2); + mrDoc.InsertPage(pNotesPage, (sal_uInt16)nTarget * 2 + 2); if( isRecordingUndo() ) AddUndo(mrDoc.GetSdrUndoFactory().CreateUndoNewPage(*pNotesPage)); @@ -1631,7 +1631,7 @@ IMPL_LINK(OutlineView, PaintingFirstLineHdl, PaintFirstLineInfo*, pInfo, void) const float fImageRatio = (float)aImageSize.Height() / (float)aImageSize.Width(); aImageSize.Width() = (long)( fImageRatio * fImageHeight ); } - aImageSize.Height() = (long)( fImageHeight ); + aImageSize.Height() = (long)fImageHeight; Point aImagePos( pInfo->mrStartPos ); aImagePos.X() += aOutSize.Width() - aImageSize.Width() - aOffset.Width() ; |