Commit f832283e authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix compile warnings, based on:

http://kdenlive.org/mantis/view.php?id=2077

svn path=/trunk/kdenlive/; revision=5556
parent d99246be
......@@ -245,7 +245,7 @@ const QVector<float> FFTTools::interpolatePeakPreserving(const QVector<float> in
float x;
float x_prev = 0;
int xi;
uint xi;
uint i;
if (((float) (right-left))/targetSize < 2) {
for (i = 0; i < targetSize; i++) {
......@@ -266,7 +266,7 @@ const QVector<float> FFTTools::interpolatePeakPreserving(const QVector<float> in
// Use linear interpolation in order to get smoother display
if (xi == 0 || xi == in.size()-1) {
if (xi == 0 || xi == (uint) in.size()-1) {
// ... except if we are at the left or right border of the input sigal.
// Special case here since we consider previous and future values as well for
// the actual interpolation (not possible here).
......@@ -309,7 +309,7 @@ const QVector<float> FFTTools::interpolatePeakPreserving(const QVector<float> in
out[i] = fill;
for (; src < xi && src < in.size(); src++) {
for (; src < xi && src < (uint) in.size(); src++) {
if (out[i] < in[src]) {
out[i] = in[src];
}
......
......@@ -444,7 +444,7 @@ void BezierSplineEditor::mouseMoveEvent(QMouseEvent* event)
}
}
void BezierSplineEditor::mouseDoubleClickEvent(QMouseEvent* event)
void BezierSplineEditor::mouseDoubleClickEvent(QMouseEvent* /*event*/)
{
if (m_currentPointIndex >= 0) {
BPoint p = m_spline.getPoint(m_currentPointIndex);
......@@ -462,7 +462,7 @@ void BezierSplineEditor::leaveEvent(QEvent* event)
int BezierSplineEditor::nearestPointInRange(QPointF p, int wWidth, int wHeight, BezierSplineEditor::point_types* sel)
{
double nearestDistanceSquared = 1000;
point_types selectedPoint;
point_types selectedPoint = PTypeP;
int nearestIndex = -1;
int i = 0;
......
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