X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7a49742ec6b4effe012dc7204db307e1267bf6a..cc4d5638c66a409e421420ed7110917755a66788:/src/common/fontcmn.cpp?ds=sidebyside diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index fed694a96d..715e2c05f6 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 20.09.99 -// RCS-ID: $Id$ // Copyright: (c) wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -603,12 +602,12 @@ void wxNativeFontInfo::SetFaceName(const wxArrayString& facenames) bool wxNativeFontInfo::FromString(const wxString& s) { long l; - short version; + unsigned long version; wxStringTokenizer tokenizer(s, wxT(";")); wxString token = tokenizer.GetNextToken(); - if ( !token.ToLong(&version) || version < 0 || version > 1 ) + if ( !token.ToULong(&version) || version > 1 ) return false; token = tokenizer.GetNextToken(); @@ -842,7 +841,7 @@ wxString wxNativeFontInfo::ToUserString() const // that the different words which compose this facename are // not different adjectives or other data but rather all parts // of the facename - desc << wxT(" '") << face << _("'"); + desc << wxT(" '") << face << wxT("'"); } else desc << wxT(' ') << face;