X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf26e9e078259736dad24bed05794de1fcb42ef7..28354d90fce9a6b1f8ccdf713602992fb5c7ccbb:/src/common/fontcmn.cpp diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index c0805e47ea..743667fa2a 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -53,13 +53,15 @@ static void AdjustFontSize(wxFont& font, wxDC& dc, const wxSize& pixelSize) { - int currentSize; + int currentSize = 0; int largestGood = 0; int smallestBad = 0; bool initialGoodFound = false; bool initialBadFound = false; + // NB: this assignment was separated from the variable definition + // in order to fix a gcc v3.3.3 compiler crash currentSize = font.GetPointSize(); while (currentSize > 0) { @@ -298,14 +300,6 @@ void wxFontBase::SetNativeFontInfoUserDesc(const wxString& info) } } -wxFont& wxFont::operator=(const wxFont& font) -{ - if ( this != &font ) - Ref(font); - - return (wxFont &)*this; -} - bool wxFontBase::operator==(const wxFont& font) const { // either it is the same font, i.e. they share the same common data or they