summaryrefslogtreecommitdiff
path: root/vcl/source/control/fixed.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:42:56 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:18 +0200
commit8dc5f89346fa0f6820d5fd0b1ad4092168967f12 (patch)
treef3742c90480393565c89ffdd0cb1cee639c65d0d /vcl/source/control/fixed.cxx
parent286dfc2a720ea8bd6b26c10126202fa25a112e0f (diff)
loplugin: defaultparams
Change-Id: I79a889c68e91712d2abdacc559c78813f730e623
Diffstat (limited to 'vcl/source/control/fixed.cxx')
-rw-r--r--vcl/source/control/fixed.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index bdbff17f22da..990f1a6cf2d3 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -210,7 +210,7 @@ void FixedText::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -218,7 +218,7 @@ void FixedText::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -621,7 +621,7 @@ void FixedLine::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -629,7 +629,7 @@ void FixedLine::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -707,7 +707,7 @@ void FixedLine::DataChanged( const DataChangedEvent& rDCEvt )
Size FixedLine::GetOptimalSize() const
{
- return CalcWindowSize( FixedText::CalcMinimumTextSize ( this, 0x7fffffff ) );
+ return CalcWindowSize( FixedText::CalcMinimumTextSize ( this ) );
}
void FixedBitmap::ImplInit( vcl::Window* pParent, WinBits nStyle )
@@ -753,7 +753,7 @@ void FixedBitmap::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -761,7 +761,7 @@ void FixedBitmap::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -923,7 +923,7 @@ void FixedImage::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent && pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -931,7 +931,7 @@ void FixedImage::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())