Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
242439b8
Commit
242439b8
authored
Jan 14, 2021
by
Vlad Zahorodnii
Browse files
Minor whitespace fixes
parent
e5abd704
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/platforms/virtual/virtual_backend.cpp
View file @
242439b8
...
...
@@ -145,12 +145,10 @@ void VirtualBackend::enableOutput(VirtualOutput *output, bool enable)
if
(
enable
)
{
Q_ASSERT
(
!
m_outputsEnabled
.
contains
(
output
));
m_outputsEnabled
<<
output
;
emit
outputEnabled
(
output
);
}
else
{
Q_ASSERT
(
m_outputsEnabled
.
contains
(
output
));
m_outputsEnabled
.
removeOne
(
output
);
emit
outputDisabled
(
output
);
}
...
...
@@ -159,8 +157,7 @@ void VirtualBackend::enableOutput(VirtualOutput *output, bool enable)
void
VirtualBackend
::
removeOutput
(
AbstractOutput
*
output
)
{
VirtualOutput
*
virtualOutput
=
static_cast
<
VirtualOutput
*>
(
output
);
VirtualOutput
*
virtualOutput
=
static_cast
<
VirtualOutput
*>
(
output
);
if
(
m_outputsEnabled
.
removeOne
(
virtualOutput
))
{
emit
outputDisabled
(
virtualOutput
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment