[Kst] branches/work/kst/portto4/kst/src/libkstapp
Peter Kümmel
syntheticpp at gmx.net
Wed Mar 23 18:43:26 CET 2011
SVN commit 1225825 by kuemmel:
remove warnings about unused/uninitialized variables
M +6 -6 mainwindow.cpp
M +4 -0 viewitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1225824:1225825
@@ -1406,7 +1406,7 @@
}
void MainWindow::readFromEnd() {
- int nf;
+ int nf = 0;
int skip;
bool do_skip;
bool do_filter;
@@ -1436,7 +1436,7 @@
}
void MainWindow::readToEnd() {
- int f0;
+ int f0 = 0;
int skip;
bool do_skip;
bool do_filter;
@@ -1473,8 +1473,8 @@
}
void MainWindow::forward() {
- int f0;
- int nf;
+ int f0 = 0;
+ int nf = 0;
int skip;
int filelength;
bool count_from_end;
@@ -1518,8 +1518,8 @@
}
void MainWindow::back() {
- int f0;
- int nf;
+ int f0 = 0;
+ int nf = 0;
int skip;
int filelength;
bool count_from_end;
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1225824:1225825
@@ -1105,6 +1105,7 @@
const qreal newAspect = r.width() / r.height();
Q_ASSERT_X(_lockAspectRatio ? qFuzzyCompare(newAspect, oldAspect) : true,
"lockAspect error", QString(QString::number(newAspect) + "!=" + QString::number(oldAspect)).toLatin1().constData());
+ Q_UNUSED(newAspect);
setViewRect(r);
}
@@ -1120,6 +1121,7 @@
const qreal newAspect = r.width() / r.height();
Q_ASSERT_X(_lockAspectRatio ? qFuzzyCompare(newAspect, oldAspect) : true,
"lockAspect error", QString(QString::number(newAspect) + "!=" + QString::number(oldAspect)).toLatin1().constData());
+ Q_UNUSED(newAspect);
setViewRect(r);
}
@@ -1135,6 +1137,7 @@
const qreal newAspect = r.width() / r.height();
Q_ASSERT_X(_lockAspectRatio ? qFuzzyCompare(newAspect, oldAspect) : true,
"lockAspect error", QString(QString::number(newAspect) + "!=" + QString::number(oldAspect)).toLatin1().constData());
+ Q_UNUSED(newAspect);
setViewRect(r);
}
@@ -1149,6 +1152,7 @@
const qreal newAspect = r.width() / r.height();
Q_ASSERT_X(_lockAspectRatio ? qFuzzyCompare(newAspect, oldAspect) : true,
"lockAspect error", QString(QString::number(newAspect) + "!=" + QString::number(oldAspect)).toLatin1().constData());
+ Q_UNUSED(newAspect);
setViewRect(r);
}
More information about the Kst
mailing list