|
@@ -245,14 +245,14 @@ void MainWindow::ReadFirstRecord()
|
|
|
nRead = mFile.read((char *)&nNameSize,sizeof(int));
|
|
|
// if(nRead<sizeof(int))return false;
|
|
|
nRead = mFile.read((char *)&nDataSize,sizeof(int));
|
|
|
- if(nRead<sizeof(int))
|
|
|
+ if(nRead<(int)sizeof(int))
|
|
|
{
|
|
|
bReadError =true;
|
|
|
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(nTotalSize !=(nHeadSize + nNameSize + nDataSize + 4*sizeof(int) ))
|
|
|
+ if(nTotalSize !=(nHeadSize + nNameSize + nDataSize + 4*(int)sizeof(int) ))
|
|
|
{
|
|
|
mFile.seek(mFile.pos() - 4*sizeof(int));
|
|
|
}
|
|
@@ -262,7 +262,7 @@ void MainWindow::ReadFirstRecord()
|
|
|
iv::RecordHead rh;
|
|
|
|
|
|
nRead = mFile.read((char *)&rh,sizeof(iv::RecordHead));
|
|
|
- if(nRead < sizeof(iv::RecordHead))
|
|
|
+ if(nRead < (int)sizeof(iv::RecordHead))
|
|
|
{
|
|
|
bReadError =true;
|
|
|
}
|
|
@@ -318,14 +318,14 @@ inline bool MainWindow::ReadARecord(int & nRecSize,char ** pstrName, int * pnDat
|
|
|
int nRead = mFile.read(strmark,1);
|
|
|
if(nRead == 0)return false;
|
|
|
nRead = mFile.read((char *)&nTotalSize,sizeof(int));
|
|
|
- if(nRead < sizeof(int))return false;
|
|
|
+ if(nRead < (int)sizeof(int))return false;
|
|
|
nRead = mFile.read((char *)&nHeadSize,sizeof(int));
|
|
|
- if(nRead < sizeof(int))return false;
|
|
|
+ if(nRead < (int)sizeof(int))return false;
|
|
|
nRead = mFile.read((char *)&nNameSize,sizeof(int));
|
|
|
- if(nRead<sizeof(int))return false;
|
|
|
+ if(nRead< (int)sizeof(int))return false;
|
|
|
nRead = mFile.read((char *)&nDataSize,sizeof(int));
|
|
|
- if(nRead<sizeof(int))return false;
|
|
|
- if(nTotalSize !=(nHeadSize + nNameSize + nDataSize + 4*sizeof(int) ))
|
|
|
+ if(nRead< (int)sizeof(int))return false;
|
|
|
+ if(nTotalSize !=(nHeadSize + nNameSize + nDataSize + 4*(int)sizeof(int) ))
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
@@ -334,7 +334,7 @@ inline bool MainWindow::ReadARecord(int & nRecSize,char ** pstrName, int * pnDat
|
|
|
char * strData = new char[nDataSize];
|
|
|
|
|
|
nRead = mFile.read((char *)&rh,sizeof(iv::RecordHead));
|
|
|
- if(nRead < sizeof(iv::RecordHead))
|
|
|
+ if(nRead < (int)sizeof(iv::RecordHead))
|
|
|
{
|
|
|
delete strData;
|
|
|
delete strName;
|
|
@@ -398,6 +398,7 @@ void MainWindow::CreateView()
|
|
|
{
|
|
|
QDesktopWidget* desktopWidget = QApplication::desktop();
|
|
|
QRect screenRect = desktopWidget->screenGeometry();
|
|
|
+ (void)screenRect;
|
|
|
// g_nActScreenW = screenRect.width();
|
|
|
// g_nActScreenH = screenRect.height();
|
|
|
|
|
@@ -421,7 +422,7 @@ void MainWindow::CreateSelectionView(QGridLayout *gl)
|
|
|
{
|
|
|
gl->setSpacing(10);
|
|
|
int i;
|
|
|
- for(i=0;i<mRUV.size();i++)
|
|
|
+ for(i=0;i<(int)mRUV.size();i++)
|
|
|
{
|
|
|
QLabel * pl = new QLabel(this);
|
|
|
pl->setText(mRUV.at(i).strname);
|
|
@@ -456,7 +457,7 @@ void MainWindow::onTimerUpdate()
|
|
|
if(mbChanging)return;
|
|
|
|
|
|
int i;
|
|
|
- for(i=0;i<mRUV.size();i++)
|
|
|
+ for(i=0;i<(int)mRUV.size();i++)
|
|
|
{
|
|
|
mRUV.at(i).pLE->setText(QString::number(mRUV.at(i).mnCount));
|
|
|
setWindowTitle("bqev_replay Time "+ mdtcurpos.toString("yyyy-MM-dd hh:mm:ss:zzz"));
|
|
@@ -469,6 +470,7 @@ void MainWindow::onTimerUpdate()
|
|
|
void MainWindow::on_pushButton_NextFrame_clicked()
|
|
|
{
|
|
|
int nRecSize;
|
|
|
+ (void)nRecSize;
|
|
|
// ReadARecord(nRecSize);
|
|
|
}
|
|
|
|
|
@@ -477,7 +479,7 @@ void MainWindow::onSelCheck()
|
|
|
QCheckBox * check = qobject_cast<QCheckBox *>(sender());
|
|
|
|
|
|
int i;
|
|
|
- for(i=0;i<mRUV.size();i++)
|
|
|
+ for(i=0;i<(int)mRUV.size();i++)
|
|
|
{
|
|
|
if(check == mRUV.at(i).pCB)
|
|
|
{
|