summaryrefslogtreecommitdiff
path: root/vcl/source/window/window2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r--vcl/source/window/window2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 72896dbce9fe..b46fae5c3f09 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -523,7 +523,7 @@ void Window::SetControlForeground()
{
if (mpWindowImpl->mbControlForeground)
{
- mpWindowImpl->maControlForeground = Color(COL_TRANSPARENT);
+ mpWindowImpl->maControlForeground = COL_TRANSPARENT;
mpWindowImpl->mbControlForeground = false;
CompatStateChanged(StateChangedType::ControlForeground);
}
@@ -535,7 +535,7 @@ void Window::SetControlForeground(const Color& rColor)
{
if (mpWindowImpl->mbControlForeground)
{
- mpWindowImpl->maControlForeground = Color(COL_TRANSPARENT);
+ mpWindowImpl->maControlForeground = COL_TRANSPARENT;
mpWindowImpl->mbControlForeground = false;
CompatStateChanged(StateChangedType::ControlForeground);
}
@@ -563,7 +563,7 @@ void Window::SetControlBackground()
{
if (mpWindowImpl->mbControlBackground)
{
- mpWindowImpl->maControlBackground = Color(COL_TRANSPARENT);
+ mpWindowImpl->maControlBackground = COL_TRANSPARENT;
mpWindowImpl->mbControlBackground = false;
CompatStateChanged(StateChangedType::ControlBackground);
}
@@ -575,7 +575,7 @@ void Window::SetControlBackground(const Color& rColor)
{
if (mpWindowImpl->mbControlBackground)
{
- mpWindowImpl->maControlBackground = Color(COL_TRANSPARENT);
+ mpWindowImpl->maControlBackground = COL_TRANSPARENT;
mpWindowImpl->mbControlBackground = false;
CompatStateChanged(StateChangedType::ControlBackground);
}