generic: compiler warning fixes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-03 20:53:39 +03:00
parent 56cd1e5c37
commit 32e9d58d95
5 changed files with 5 additions and 5 deletions

View file

@ -457,7 +457,10 @@ void KColorCm::variesClicked()
// find which button was changed
const int row = sender()->objectName().toInt();
QColor color = QColorDialog::getColor(color, this, KDialog::makeStandardCaption(i18n("Select Color"), this));
QColor color = QColorDialog::getColor(
QColor(Qt::white),
this, KDialog::makeStandardCaption(i18n("Select Color"), this)
);
if(color.isValid())
{
changeColor(row, color);

View file

@ -149,7 +149,7 @@ void DigitalClockApplet::createConfigurationInterface(KConfigDialog *parent)
void DigitalClockApplet::constraintsEvent(Plasma::Constraints constraints)
{
if (constraints && Plasma::SizeConstraint || constraints & Plasma::FormFactorConstraint) {
if (constraints & Plasma::SizeConstraint || constraints & Plasma::FormFactorConstraint) {
switch (formFactor()) {
// panel
case Plasma::FormFactor::Horizontal: {

View file

@ -1156,7 +1156,6 @@ void LauncherApplications::slotCheckBookmarks()
QStringList bookmarkurls;
KBookmarkGroup bookmarkgroup = m_bookmarkmanager->root();
KBookmark bookmark = bookmarkgroup.first();
bool isinfavorites = false;
while (!bookmark.isNull()) {
bookmarkurls.append(bookmark.url().url());
bookmark = bookmarkgroup.next(bookmark);

View file

@ -41,7 +41,6 @@ static const int s_monitorsid = -1;
static const int s_update = 1; // 1 sec
static const QSizeF s_minimumframesize = QSizeF(150, 90);
static const QSizeF s_minimummetersize = QSizeF(90, 90);
static const int s_textoffset = 10;
enum KSensorType {
UnknownSensor = 0,

View file

@ -175,7 +175,6 @@ QSize BackgroundListModel::bestSize(Plasma::Package *package) const
if (m_structureParent) {
QModelIndex index = indexOf(image);
if (index.isValid()) {
Plasma::Package *package = m_packages.at(index.row());
m_structureParent.data()->updateScreenshot(index);
}
}