diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 13:03:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-08 08:29:03 +0200 |
commit | 185ed3ddb8c01ee4465ce559e37113824f57b5c7 (patch) | |
tree | 596455ca4b9dc85666efbf06a1e1e0a3eec3ee2d /vcl/source/control/spinfld.cxx | |
parent | d33e262a244f351febc9dbe605b05f76cb834eeb (diff) |
teach loplugin:constantparam about simple constructor calls
Change-Id: I7d2a28ab5951fbdb5a427c84e9ac4c1e32ecf9f9
Reviewed-on: https://gerrit.libreoffice.org/37280
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/spinfld.cxx')
-rw-r--r-- | vcl/source/control/spinfld.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 985656aa603a..f462a600b237 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -114,7 +114,7 @@ bool ImplDrawNativeSpinfield(vcl::RenderContext& rRenderContext, vcl::Window* pW if (!ImplGetSVData()->maNWFData.mbCanDrawWidgetAnySize && pContext->GetNativeControlRegion(ControlType::Spinbox, ControlPart::Entire, aNatRgn, ControlState::NONE, rSpinbuttonValue, - OUString(), aBound, aContent)) + aBound, aContent)) { aSize = aContent.GetSize(); } @@ -658,9 +658,9 @@ void SpinField::ImplCalcButtonAreas(OutputDevice* pDev, const Size& rOutSz, tool bNativeRegionOK = pWin->GetNativeControlRegion(ControlType::Spinbox, ControlPart::ButtonUp, - aArea, ControlState::NONE, aControlValue, OUString(), aBound, aContentUp) && + aArea, ControlState::NONE, aControlValue, aBound, aContentUp) && pWin->GetNativeControlRegion(ControlType::Spinbox, ControlPart::ButtonDown, - aArea, ControlState::NONE, aControlValue, OUString(), aBound, aContentDown); + aArea, ControlState::NONE, aControlValue, aBound, aContentDown); if (bNativeRegionOK) { @@ -713,7 +713,7 @@ void SpinField::Resize() // adjust position and size of the edit field if (GetNativeControlRegion(ControlType::Spinbox, ControlPart::SubEdit, aArea, ControlState::NONE, - aControlValue, OUString(), aBound, aContent) && + aControlValue, aBound, aContent) && // there is just no useful native support for spinfields with dropdown !(GetStyle() & WB_DROPDOWN)) { @@ -905,9 +905,9 @@ Size SpinField::CalcMinimumSizeForText(const OUString &rString) const tools::Rectangle aEntireBound, aEntireContent, aEditBound, aEditContent; if ( GetNativeControlRegion(ControlType::Spinbox, ControlPart::Entire, - aArea, ControlState::NONE, aControlValue, OUString(), aEntireBound, aEntireContent) && + aArea, ControlState::NONE, aControlValue, aEntireBound, aEntireContent) && GetNativeControlRegion(ControlType::Spinbox, ControlPart::SubEdit, - aArea, ControlState::NONE, aControlValue, OUString(), aEditBound, aEditContent) + aArea, ControlState::NONE, aControlValue, aEditBound, aEditContent) ) { aSz.Width() += (aEntireContent.GetWidth() - aEditContent.GetWidth()); |