diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:34 +0200 |
commit | 65fe84d273a4fe099cd03be088165672788cf32e (patch) | |
tree | 0795ea30238cb3b8f8ab65efc894b909cd14cfc8 /svtools/source/control/ctrlbox.cxx | |
parent | 5a3f4ccd6e98412b3e773f9790b8f078569578ae (diff) |
loplugin:defaultparams
Change-Id: I7f24a05bdf01b455d470f5b560359dea3f407c58
Diffstat (limited to 'svtools/source/control/ctrlbox.cxx')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 4568f4a49b05..6f937eb83528 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1095,7 +1095,7 @@ namespace //Make sure it fits in the available height while (aSize.Height() > 0) { - if (!rDevice.GetTextBoundRect(rTextRect, rSampleText, 0, 0)) + if (!rDevice.GetTextBoundRect(rTextRect, rSampleText)) break; if (rTextRect.GetHeight() <= nH) { @@ -1155,7 +1155,7 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt ) if (!bUsingCorrectFont) { pRenderContext->SetFont(aOldFont); - pRenderContext->GetTextBoundRect(aTextRect, sFontName, 0, 0); + pRenderContext->GetTextBoundRect(aTextRect, sFontName); } long nTextHeight = aTextRect.GetHeight(); @@ -1273,7 +1273,7 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt ) while (nWidth > nSpace || nWidth > MAXPREVIEWWIDTH) { sSampleText = sSampleText.copy(0, sSampleText.getLength()-1); - nWidth = pRenderContext->GetTextBoundRect(aTextRect, sSampleText, 0, 0) ? + nWidth = pRenderContext->GetTextBoundRect(aTextRect, sSampleText) ? aTextRect.GetWidth() : 0; } |