chore: add missing default for switches

This commit is contained in:
sithlord48
2025-07-03 19:43:56 -04:00
committed by Nick Bolton
parent 865365b2fa
commit 36e985d8ab
9 changed files with 27 additions and 0 deletions

View File

@ -630,6 +630,9 @@ uint32_t Unicode::fromUTF8(const uint8_t *&data, uint32_t &n)
truncated = true;
size = 1;
}
default:
break;
}
// update parameters

View File

@ -441,6 +441,9 @@ KeyID ServerProxy::translateKey(KeyID id) const
id2 = kKeyModifierIDSuper;
side = 1;
break;
default:
break;
}
if (id2 != kKeyModifierIDNull) {

View File

@ -121,6 +121,9 @@ void ClipboardChunk::send(deskflow::IStream *stream, void *data)
case ChunkType::DataEnd:
LOG((CLOG_DEBUG2 "sending clipboard finished"));
break;
default:
break;
}
ProtocolUtil::writef(stream, kMsgDClipboard, id, sequence, mark, &dataChunk);

View File

@ -255,6 +255,10 @@ uint32_t ProtocolUtil::getLength(const char *fmt, va_list args)
case 4:
len = 4 * (uint32_t)(va_arg(args, std::vector<uint32_t> *))->size() + 4;
break;
default:
LOG((CLOG_ERR "format specifier %%I%d has invalid length", len));
break;
}
break;

View File

@ -163,6 +163,9 @@ QString KeySequence::keyToString(int key)
return "2";
case Qt::MiddleButton:
return "3";
default:
qDebug() << "unknown key" << key;
break;
}
return "4"; // qt only knows three mouse buttons, so assume it's an unknown

View File

@ -57,6 +57,9 @@ QVariant ScreenSetupModel::data(const QModelIndex &index, int role) const
case Qt::DisplayRole:
return screen(index).name();
default:
break;
}
return QVariant();
}

View File

@ -1333,6 +1333,9 @@ void XWindowsScreen::handleSystemEvent(const Event &event)
LOG((CLOG_INFO "group change: %d", xkbEvent->state.group));
m_keyState->setActiveGroup((int32_t)xkbEvent->state.group);
return;
default:
return;
}
}
#endif

View File

@ -160,6 +160,8 @@ bool XWindowsScreenSaver::handleXEvent(const XEvent *xevent)
return true;
}
break;
default:
break;
}
return false;

View File

@ -181,6 +181,9 @@ void ClientProxyUnknown::initProxy(const std::string &name, int major, int minor
case 8:
m_proxy = new ClientProxy1_8(name, m_stream, m_server, m_events);
break;
default:
break;
}
}