Fix some compilation warnings

This commit is contained in:
hopetech 2016-10-19 15:41:25 +02:00
parent 0e1fad0ff7
commit ecaea051fa
5 changed files with 7 additions and 5 deletions

View File

@ -497,7 +497,7 @@ QVariant TreeStyle_RDM::sortRole(const QModelIndex& /*index*/,const DirDetails&
} }
return QVariant(); return QVariant();
} }
QVariant FlatStyle_RDM::sortRole(const QModelIndex& index,const DirDetails& details,int coln) const QVariant FlatStyle_RDM::sortRole(const QModelIndex& /*index*/,const DirDetails& details,int coln) const
{ {
/* /*
* Person: name, id, 0, 0; * Person: name, id, 0, 0;

View File

@ -167,7 +167,7 @@ void PopupDistantChatDialog::closeEvent(QCloseEvent *e)
PopupChatDialog::closeEvent(e) ; PopupChatDialog::closeEvent(e) ;
} }
QString PopupDistantChatDialog::getPeerName(const ChatId &id) const QString PopupDistantChatDialog::getPeerName(const ChatId &/*id*/) const
{ {
DistantChatPeerInfo tinfo; DistantChatPeerInfo tinfo;

View File

@ -393,11 +393,13 @@ void RSGraphWidget::paintData()
paintLine(points, getColor(i)); paintLine(points, getColor(i));
} }
if(_maxValue > 0.0f) if(_maxValue > 0.0f)
{
if(_flags & RSGRAPH_FLAGS_LOG_SCALE_Y) if(_flags & RSGRAPH_FLAGS_LOG_SCALE_Y)
_y_scale = _rec.height()*0.8 / log(_maxValue) ; _y_scale = _rec.height()*0.8 / log(_maxValue) ;
else else
_y_scale = _rec.height()*0.8/_maxValue ; _y_scale = _rec.height()*0.8/_maxValue ;
} }
}
/** Returns a list of points on the bandwidth graph based on the supplied set /** Returns a list of points on the bandwidth graph based on the supplied set
* of rsdht or alldht values. */ * of rsdht or alldht values. */

View File

@ -195,7 +195,7 @@ bool GxsIdChooser::isInConstraintSet(const RsGxsId& id) const
return mConstraintIdsSet.find(id) != mConstraintIdsSet.end() ; return mConstraintIdsSet.find(id) != mConstraintIdsSet.end() ;
} }
void GxsIdChooser::setEntryEnabled(int indx,bool enabled) void GxsIdChooser::setEntryEnabled(int indx,bool /*enabled*/)
{ {
removeItem(indx) ; removeItem(indx) ;

View File

@ -486,7 +486,7 @@ void ServerPage::addPeerToIPTable(QTableWidget *table,int row,const BanListPeer&
void ServerPage::toggleGroupIps(bool b) { rsBanList->enableAutoRange(b) ; } void ServerPage::toggleGroupIps(bool b) { rsBanList->enableAutoRange(b) ; }
void ServerPage::setGroupIpLimit(int n) { rsBanList->setAutoRangeLimit(n) ; } void ServerPage::setGroupIpLimit(int n) { rsBanList->setAutoRangeLimit(n) ; }
void ServerPage::ipFilterContextMenu(const QPoint& point) void ServerPage::ipFilterContextMenu(const QPoint& /*point*/)
{ {
QMenu contextMenu(this) ; QMenu contextMenu(this) ;
int row = ui.filteredIpsTable->currentRow(); int row = ui.filteredIpsTable->currentRow();
@ -604,7 +604,7 @@ void ServerPage::ipWhiteListContextMenu(const QPoint& /* point */)
if(item == NULL) if(item == NULL)
return ; return ;
bool status = item->data(Qt::UserRole).toBool(); //bool status = item->data(Qt::UserRole).toBool();
contextMenu.addAction(tr("Remove"),this,SLOT(removeWhiteListedIp())); contextMenu.addAction(tr("Remove"),this,SLOT(removeWhiteListedIp()));