refactor: use If in place of switch that looks for single case
This commit is contained in:
parent
eae089d3ec
commit
138ede0536
1 changed files with 2 additions and 6 deletions
|
|
@ -48,14 +48,10 @@ XWindowsClipboard::XWindowsClipboard(Display *display, Window window, ClipboardI
|
|||
m_atomGDKSelection = XInternAtom(m_display, "GDK_SELECTION", False);
|
||||
|
||||
// set selection atom based on clipboard id
|
||||
switch (id) {
|
||||
case kClipboardClipboard:
|
||||
if (id == kClipboardClipboard) {
|
||||
m_selection = XInternAtom(m_display, "CLIPBOARD", False);
|
||||
break;
|
||||
|
||||
default:
|
||||
} else {
|
||||
m_selection = XA_PRIMARY;
|
||||
break;
|
||||
}
|
||||
|
||||
// add converters, most desired first
|
||||
|
|
|
|||
Loading…
Reference in a new issue