]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontcmn.cpp
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW...
[wxWidgets.git] / src / common / fontcmn.cpp
index c2de94c21efa34915ef0dca54079b0a82ef30ab0..c4416f5bec3301a82f9c768b6773a6c5dbd90bb2 100644 (file)
 // helper functions
 // ----------------------------------------------------------------------------
 
 // helper functions
 // ----------------------------------------------------------------------------
 
-static void AdjustFontSize(wxFont font, wxDC& dc, const wxSize& pixelSize)
+static void AdjustFontSize(wxFont& font, wxDC& dc, const wxSize& pixelSize)
 {
     int currentSize = font.GetPointSize();
 {
     int currentSize = font.GetPointSize();
-    int largestGood;
-    int smallestBad;
+    int largestGood = 0;
+    int smallestBad = 0;
 
     bool initialGoodFound = false;
     bool initialBadFound = false;
 
     bool initialGoodFound = false;
     bool initialBadFound = false;