*** empty log message ***

svn path=/trunk/boinc/; revision=11801
This commit is contained in:
Charlie Fenton 2007-01-08 08:12:49 +00:00
parent d380952912
commit 2d5a13029d
3 changed files with 12 additions and 3 deletions

View File

@ -13,7 +13,7 @@ Reinhard 2 Jan 2007
Makefile.am
Charlie 2 Jan 2007
- MGR: Fix 2 compiler warnings caused by to actual coding errors.
- MGR: Fix 2 compiler warnings caused by actual coding errors.
- Mac: Add new files BOINCGridCtrl.cpp,.h, ViewTransfersGrid.cpp,.h,
ViewWorkGrid.cpp,.h to XCode project.
@ -246,3 +246,12 @@ Rom 7 Jan 2007
lib/
diagnostics.C
diagnostics_win.C
Charlie 8 Jan 2007
- MGR: Fix 2 compiler warnings, 1 caused by an actual coding error.
NOTE: to printf a "%", you need to use "%%" in the format; for
example: ("%.2f%%").
clientgui/
BOINCGridCtrl.cpp
ViewTransfersGrid.cpp

View File

@ -684,7 +684,7 @@ CBOINCGridTable::~CBOINCGridTable() {
}
void CBOINCGridTable::SetColumnSortType(int col,int sortType/*=CST_STRING*/) {
if(col>=0 && col < arrColumnSortTypes.GetCount()) {
if(col>=0 && col < (int)arrColumnSortTypes.GetCount()) {
arrColumnSortTypes[col] = sortType;
}
}

View File

@ -295,7 +295,7 @@ wxInt32 CViewTransfersGrid::FormatProgress(wxInt32 item, wxString& strBuffer) co
if ( 0.0 == fFileSize ) {
strBuffer = wxT("0%");
} else {
strBuffer.Printf(wxT("%.2f%"), floor((fBytesSent / fFileSize) * 10000)/100);
strBuffer.Printf(wxT("%.2f%%"), floor((fBytesSent / fFileSize) * 10000)/100);
}
return 0;