mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Small bug and compiler warning fixes:
- gui/forums/CreateForumMsg.cpp used endl instead of std::endl - constructor's initializer in the wrong order - temporary variables type causing signedness warnings git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3107 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d48035385b
commit
c3c607ec80
6 changed files with 11 additions and 11 deletions
|
@ -194,7 +194,7 @@ void FileTransferInfoWidget::draw(const FileInfo& nfo,const FileChunksInfo& info
|
|||
//
|
||||
int nb_chunks = info.file_size/info.chunk_size + !!(info.file_size % info.chunk_size);
|
||||
|
||||
for(uint i=0;i<availability_map_size_X;++i)
|
||||
for(int i=0;i<availability_map_size_X;++i)
|
||||
{
|
||||
int nb_src = 0 ;
|
||||
int chunk_num = (int)floor(i/float(availability_map_size_X)*(nb_chunks-1)) ;
|
||||
|
@ -209,7 +209,7 @@ void FileTransferInfoWidget::draw(const FileInfo& nfo,const FileChunksInfo& info
|
|||
y += block_sep + availability_map_size_Y ;
|
||||
painter->setPen(QColor::fromRgb(70,70,70)) ;
|
||||
painter->drawLine(0,y,maxWidth,y) ;
|
||||
y += block_sep ;
|
||||
y += block_sep ;
|
||||
|
||||
// various info:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue