[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kxmlgui] src: Fix clang warning (C casts)
From: David Faure <faure () kde ! org>
Date: 2016-01-31 20:04:24
Message-ID: E1aPyES-0005lf-Es () scm ! kde ! org
[Download RAW message or body]
Git commit 39bd9a130f4ed93dbab1932d9c9052532a869247 by David Faure.
Committed on 31/01/2016 at 20:02.
Pushed by dfaure into branch 'master'.
Fix clang warning (C casts)
M +1 -1 src/ksendbugmail/smtp.cpp
M +1 -1 src/kxmlguiclient.cpp
http://commits.kde.org/kxmlgui/39bd9a130f4ed93dbab1932d9c9052532a869247
diff --git a/src/ksendbugmail/smtp.cpp b/src/ksendbugmail/smtp.cpp
index 595e12a..5483bf7 100644
--- a/src/ksendbugmail/smtp.cpp
+++ b/src/ksendbugmail/smtp.cpp
@@ -268,7 +268,7 @@ void SMTP::processLine(QString *line)
// qDebug() << "warning: SMTP status code longer than 3 digits: " << tmpstr;
}
stat = tmpstr.toInt();
- serverState = (SMTPServerStatus)stat;
+ serverState = static_cast<SMTPServerStatus>(stat);
lastState = state;
// qDebug() << "smtp state: [" << stat << "][" << *line << "]";
diff --git a/src/kxmlguiclient.cpp b/src/kxmlguiclient.cpp
index 90908f9..acce895 100644
--- a/src/kxmlguiclient.cpp
+++ b/src/kxmlguiclient.cpp
@@ -506,7 +506,7 @@ bool KXMLGUIClientPrivate::mergeXML(QDomElement &base, QDomElement &additive, KA
else {
QDomElement matchingElement = findMatchingElement(e, additive);
if (!matchingElement.isNull()) {
- matchingElement.setAttribute(attrAlreadyVisited, (uint)1);
+ matchingElement.setAttribute(attrAlreadyVisited, uint(1));
if (mergeXML(e, matchingElement, actionCollection)) {
base.removeChild(e);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic