Commit ebb883d8 authored by Victor Wåhlström's avatar Victor Wåhlström

Fixed a couple of warnings

parent 5bca5b96
......@@ -202,7 +202,7 @@ QPolygonF KoColorSpace::estimatedTRCXYY() const
// This is fixed to 5 since the maximum number of channels are 5 for CMYKA
QVector <float> channelValuesF(5);//for getting the coordinates.
for (int i=0; i<colorChannelCount(); i++) {
for (quint32 i=0; i<colorChannelCount(); i++) {
qreal colorantY=1.0;
if (colorModelId().id()!="CMYKA") {
for (int j=5; j>0; j--){
......
......@@ -123,6 +123,8 @@ void KisNodeDelegate::paint(QPainter *p, const QStyleOptionViewItem &o, const QM
}
void KisNodeDelegate::drawBranch(QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const {
Q_UNUSED(index);
KisNodeViewColorScheme scm;
const QPoint base = scm.relThumbnailRect().translated(option.rect.topLeft()).topLeft() - QPoint( scm.indentation(), 0);
......@@ -725,6 +727,7 @@ void KisNodeDelegate::setModelData(QWidget *widget, QAbstractItemModel *model, c
void KisNodeDelegate::updateEditorGeometry(QWidget *widget, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index);
widget->setGeometry(option.rect);
}
......
......@@ -75,6 +75,8 @@ void KisRemoteFileFetcher::downloadProgress(qint64 bytesReceived, qint64 bytesTo
void KisRemoteFileFetcher::error(QNetworkReply::NetworkError error)
{
Q_UNUSED(error);
qDebug() << "error" << m_reply->errorString();
m_loop.quit();
}
......@@ -320,7 +320,6 @@ void ArtisticTextShape::createOutline()
qreal rotation = 0.0;
Q_FOREACH (const ArtisticTextRange &range, m_ranges) {
const QString textRange = range.text();
const int localTextLength = textRange.length();
for (int localCharIndex = 0; localCharIndex < m_charOutlines.size(); ++localCharIndex, ++globalCharIndex) {
const QPointF &charPos = m_charPositions[globalCharIndex];
if (range.hasRotation(localCharIndex)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment