mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
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:
parent
a124c928d5
commit
031629d528
@ -323,7 +323,6 @@ int pqistreamer::queue_outpqi(RsItem *pqi,uint32_t& pktsize)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* decide which type of packet it is */
|
/* 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);
|
void *ptr = malloc(pktsize);
|
||||||
|
@ -83,7 +83,7 @@ class RsPlugin
|
|||||||
virtual MainPage *qt_page() const { return NULL ; }
|
virtual MainPage *qt_page() const { return NULL ; }
|
||||||
virtual QWidget *qt_config_panel() const { return NULL ; }
|
virtual QWidget *qt_config_panel() const { return NULL ; }
|
||||||
virtual QIcon *qt_icon() 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 configurationFileName() const { return std::string() ; }
|
||||||
virtual std::string getShortPluginDescription() const = 0 ;
|
virtual std::string getShortPluginDescription() const = 0 ;
|
||||||
|
@ -130,7 +130,7 @@ void RsCollectionDialog::updateSizes()
|
|||||||
uint64_t total_size = 0 ;
|
uint64_t total_size = 0 ;
|
||||||
uint32_t total_files = 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())
|
if(_cboxes[i]->isChecked())
|
||||||
{
|
{
|
||||||
total_size += _dlinfos[i].size ;
|
total_size += _dlinfos[i].size ;
|
||||||
@ -143,14 +143,14 @@ void RsCollectionDialog::updateSizes()
|
|||||||
void RsCollectionDialog::selectAll() const
|
void RsCollectionDialog::selectAll() const
|
||||||
{
|
{
|
||||||
std::cerr << "Selecting all !" << std::endl;
|
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) ;
|
_cboxes[i]->setChecked(true) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RsCollectionDialog::deselectAll() const
|
void RsCollectionDialog::deselectAll() const
|
||||||
{
|
{
|
||||||
std::cerr << "Deselecting all !" << std::endl;
|
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) ;
|
_cboxes[i]->setChecked(false) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user