From 2d5a13029d5ecc78a88a8b5db13906dedc500e4e Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 8 Jan 2007 08:12:49 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11801 --- checkin_notes | 11 ++++++++++- clientgui/BOINCGridCtrl.cpp | 2 +- clientgui/ViewTransfersGrid.cpp | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 67ff86dc8a..338017e3ab 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/clientgui/BOINCGridCtrl.cpp b/clientgui/BOINCGridCtrl.cpp index fb83af42d3..9c7b558d19 100644 --- a/clientgui/BOINCGridCtrl.cpp +++ b/clientgui/BOINCGridCtrl.cpp @@ -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; } } diff --git a/clientgui/ViewTransfersGrid.cpp b/clientgui/ViewTransfersGrid.cpp index c3a462048b..e5711ac5c7 100644 --- a/clientgui/ViewTransfersGrid.cpp +++ b/clientgui/ViewTransfersGrid.cpp @@ -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;