refactor: use If in place of switch that looks for single case

This commit is contained in:
sithlord48
2025-09-01 09:37:04 -04:00
committed by Nick Bolton
parent eae089d3ec
commit 138ede0536

View File

@ -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