Removed some more compiler warnings in retroshare-gui.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4566 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-08-14 21:25:41 +00:00
parent cd0854c4e8
commit 39708cdd0b
8 changed files with 10 additions and 10 deletions

View File

@ -57,7 +57,7 @@ class NetworkView : public RsAutoUpdatePage
/** Qt Designer generated object */
Ui::NetworkView ui;
int _max_friend_level ;
uint _max_friend_level ;
std::map<std::string,GraphWidget::NodeId> _node_ids ;
bool _should_update ;

View File

@ -761,7 +761,7 @@ QModelIndex FlatStyle_RDM::index(int row, int column, const QModelIndex & parent
if(row < 0)
return QModelIndex() ;
if(row < _ref_entries.size())
if(row < (int) _ref_entries.size())
{
void *ref = _ref_entries[row].first ;

View File

@ -630,7 +630,7 @@ void SearchDialog::searchKeywords(const QString& keywords)
req_id = rsTurtle->turtleSearch(lin_exp) ;
}
else
req_id = (((uint32_t)rand()) << 16)^0x1e2fd5e4 + ((uint32_t)rand())^0x1b19acfe ; // generate a random 32 bits request id
req_id = ((((uint32_t)rand()) << 16)^0x1e2fd5e4) + (((uint32_t)rand())^0x1b19acfe) ; // generate a random 32 bits request id
initSearchResult(txt,req_id) ; // this will act before turtle results come to the interface, thanks to the signals scheduling policy.
@ -928,7 +928,7 @@ void SearchDialog::insertFile(const std::string& txt,qulonglong searchId, const
if(nb_results.find(searchId) == nb_results.end())
nb_results[searchId] = 0 ;
if(nb_results[searchId] >= ui._max_results_SB->value())
if((int) nb_results[searchId] >= ui._max_results_SB->value())
return ;
// 1 - look in result window whether the file already exists.

View File

@ -9,7 +9,7 @@
#include "gui/settings/rsharesettings.h"
static const int MAX_TUNNEL_REQUESTS_DISPLAY = 10 ;
static const uint MAX_TUNNEL_REQUESTS_DISPLAY = 10 ;
TurtleRouterDialog::TurtleRouterDialog(QWidget *parent)

View File

@ -128,7 +128,7 @@ RWindow::setVisible(bool visible)
* window visible. */
if (isVisible()) {
activateWindow();
setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
raise();
} else {
restoreWindowState();

View File

@ -60,7 +60,7 @@ void fourn(double data[],unsigned long nn[],unsigned long ndim,int isign)
double theta,wi,wpi,wpr,wr,wtemp;
ntot=1;
for (idim=1;idim<=ndim;idim++)
for (idim=1;idim<=(long)ndim;idim++)
ntot *= nn[idim];
nprev=1;
for (idim=ndim;idim>=1;idim--) {

View File

@ -42,7 +42,7 @@
#ifndef NODE_H
#define NODE_H
#include <QGraphicsItem>
#include <QGraphicsObject>
#include <QList>
#include "graphwidget.h"
@ -52,7 +52,7 @@ QT_BEGIN_NAMESPACE
class QGraphicsSceneMouseEvent;
QT_END_NAMESPACE
class Node : public QObject, public QGraphicsItem
class Node : public QGraphicsObject
{
Q_OBJECT

View File

@ -103,7 +103,7 @@ PluginsPage::PluginsPage(QWidget * parent, Qt::WFlags flags)
const std::vector<std::string>& dirs(rsPlugins->getPluginDirectories()) ;
text = "" ;
for(int i=0;i<dirs.size();++i)
for(uint i=0;i<dirs.size();++i)
text += "<b>"+QString::fromStdString(dirs[i]) + "</b><br/>" ;
ui._lookupDirectories_TB->setHtml(text) ;