Commit 6ed8fb32 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix PVS-Studio warning: reordered function arguments

Just a misprint or copy-paste

CCBUG:393431
parent 69603179
...@@ -72,7 +72,7 @@ void KisGradientBenchmark::benchmarkGradient() ...@@ -72,7 +72,7 @@ void KisGradientBenchmark::benchmarkGradient()
// default // default
fillPainter.setCompositeOp(COMPOSITE_OVER); fillPainter.setCompositeOp(COMPOSITE_OVER);
fillPainter.setGradientShape(KisGradientPainter::GradientShapeBiLinear); fillPainter.setGradientShape(KisGradientPainter::GradientShapeBiLinear);
fillPainter.paintGradient(QPointF(0,0), QPointF(3000,3000), KisGradientPainter::GradientRepeatNone, true, false, 0, 0, GMP_IMAGE_WIDTH,GMP_IMAGE_HEIGHT); fillPainter.paintGradient(QPointF(0,0), QPointF(3000,3000), KisGradientPainter::GradientRepeatNone, 1.0, false, 0, 0, GMP_IMAGE_WIDTH,GMP_IMAGE_HEIGHT);
fillPainter.deleteTransaction(); fillPainter.deleteTransaction();
} }
......
...@@ -76,7 +76,7 @@ void KisRandomIteratorBenchmark::benchmarkReadBytes() ...@@ -76,7 +76,7 @@ void KisRandomIteratorBenchmark::benchmarkReadBytes()
for (int i = 0; i < TEST_IMAGE_HEIGHT; i++){ for (int i = 0; i < TEST_IMAGE_HEIGHT; i++){
for (int j = 0; j < TEST_IMAGE_WIDTH; j++) { for (int j = 0; j < TEST_IMAGE_WIDTH; j++) {
it->moveTo(j,i); it->moveTo(j,i);
memcpy(it->rawData(), m_color->data(), m_colorSpace->pixelSize()); memcpy(m_color->data(), it->rawData(), m_colorSpace->pixelSize());
} }
} }
} }
......
...@@ -591,7 +591,7 @@ KoParagraphStyle *KoTextSharedLoadingData::paragraphStyle(const QString &name, b ...@@ -591,7 +591,7 @@ KoParagraphStyle *KoTextSharedLoadingData::paragraphStyle(const QString &name, b
QList<KoParagraphStyle *> KoTextSharedLoadingData::paragraphStyles(bool stylesDotXml) const QList<KoParagraphStyle *> KoTextSharedLoadingData::paragraphStyles(bool stylesDotXml) const
{ {
return stylesDotXml ? d->paragraphStylesDotXmlStyles.values() : d->paragraphStylesDotXmlStyles.values(); return stylesDotXml ? d->paragraphStylesDotXmlStyles.values() : d->paragraphContentDotXmlStyles.values();
} }
KoCharacterStyle *KoTextSharedLoadingData::characterStyle(const QString &name, bool stylesDotXml) const KoCharacterStyle *KoTextSharedLoadingData::characterStyle(const QString &name, bool stylesDotXml) const
......
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