]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/gridctrl.cpp
Add some more docs to the runtime installer.
[wxWidgets.git] / src / generic / gridctrl.cpp
index 473f509125bf62ee2354c34cc61263bf6f767c27..970370bdb5f4a6d337038078e3b7d6463146b197 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "gridctrl.h"
 #endif
 
@@ -60,7 +60,7 @@ wxString wxGridCellDateTimeRenderer::GetString(wxGrid& grid, int row, int col)
 {
     wxGridTableBase *table = grid.GetTable();
 
-    bool hasDatetime = FALSE;
+    bool hasDatetime = false;
     wxDateTime val;
     wxString text;
     if ( table->CanGetValueAs(row, col, wxGRID_VALUE_DATETIME) )
@@ -69,7 +69,7 @@ wxString wxGridCellDateTimeRenderer::GetString(wxGrid& grid, int row, int col)
 
         if (tempval){
             val = *((wxDateTime *)tempval);
-            hasDatetime = TRUE;
+            hasDatetime = true;
             delete (wxDateTime *)tempval;
         }
 
@@ -344,7 +344,7 @@ wxGridCellAutoWrapStringRenderer::GetTextLines(wxGrid& grid,
 
     dc.SetFont(attr.GetFont());
     wxStringTokenizer tk(data , _T(" \n\t\r"));
-    wxString thisline(wxT(""));
+    wxString thisline = wxEmptyString;
 
     while ( tk.HasMoreTokens() )
     {
@@ -352,7 +352,7 @@ wxGridCellAutoWrapStringRenderer::GetTextLines(wxGrid& grid,
     //FIXME: this causes us to print an extra unnecesary
     //       space at the end of the line. But it
     //       is invisible , simplifies the size calculation
-    //       and ensures tokens are seperated in the display
+    //       and ensures tokens are separated in the display
     tok += _T(" ");
 
         dc.GetTextExtent(tok, &x, &y);