Removed compiler warnings.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4689 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-11-25 13:32:46 +00:00
parent a124c928d5
commit 031629d528
3 changed files with 5 additions and 6 deletions

View File

@ -323,9 +323,8 @@ int pqistreamer::queue_outpqi(RsItem *pqi,uint32_t& pktsize)
#endif
/* decide which type of packet it is */
RsFileData *dta = dynamic_cast<RsFileData *>(pqi); // This is the old test method
pktsize = rsSerialiser->size(pqi);
pktsize = rsSerialiser->size(pqi);
void *ptr = malloc(pktsize);
#ifdef DEBUG_PQISTREAMER

View File

@ -83,7 +83,7 @@ class RsPlugin
virtual MainPage *qt_page() const { return NULL ; }
virtual QWidget *qt_config_panel() const { return NULL ; }
virtual QIcon *qt_icon() const { return NULL ; }
virtual QTranslator *qt_translator(QApplication *app, const QString& languageCode) const { return NULL ; }
virtual QTranslator *qt_translator(QApplication */*app*/, const QString& /*languageCode*/) const { return NULL ; }
virtual std::string configurationFileName() const { return std::string() ; }
virtual std::string getShortPluginDescription() const = 0 ;

View File

@ -130,7 +130,7 @@ void RsCollectionDialog::updateSizes()
uint64_t total_size = 0 ;
uint32_t total_files = 0 ;
for(int i=0;i<_dlinfos.size();++i)
for(size_t i=0;i<_dlinfos.size();++i)
if(_cboxes[i]->isChecked())
{
total_size += _dlinfos[i].size ;
@ -143,14 +143,14 @@ void RsCollectionDialog::updateSizes()
void RsCollectionDialog::selectAll() const
{
std::cerr << "Selecting all !" << std::endl;
for(int i=0;i<_dlinfos.size();++i)
for(size_t i=0;i<_dlinfos.size();++i)
_cboxes[i]->setChecked(true) ;
}
void RsCollectionDialog::deselectAll() const
{
std::cerr << "Deselecting all !" << std::endl;
for(int i=0;i<_dlinfos.size();++i)
for(size_t i=0;i<_dlinfos.size();++i)
_cboxes[i]->setChecked(false) ;
}