Fix for link error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -60,14 +60,8 @@ public:
 | 
				
			|||||||
    virtual ~wxFontMapperBase();
 | 
					    virtual ~wxFontMapperBase();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // return instance of the wxFontMapper singleton
 | 
					    // return instance of the wxFontMapper singleton
 | 
				
			||||||
#if wxUSE_GUI
 | 
					 | 
				
			||||||
    // GUI code needs to know it's a wxFontMapper because there
 | 
					 | 
				
			||||||
    // are additional methods in the subclass.
 | 
					 | 
				
			||||||
    static wxFontMapper *Get();
 | 
					 | 
				
			||||||
#else
 | 
					 | 
				
			||||||
    // wxBase code only cares that it's a wxFontMapperBase
 | 
					    // wxBase code only cares that it's a wxFontMapperBase
 | 
				
			||||||
    static wxFontMapperBase *Get();
 | 
					    static wxFontMapperBase *Get();
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // set the singleton to 'mapper' instance and return previous one
 | 
					    // set the singleton to 'mapper' instance and return previous one
 | 
				
			||||||
    static wxFontMapper *Set(wxFontMapper *mapper);
 | 
					    static wxFontMapper *Set(wxFontMapper *mapper);
 | 
				
			||||||
@@ -235,6 +229,9 @@ public:
 | 
				
			|||||||
    // the title for the dialogs (note that default is quite reasonable)
 | 
					    // the title for the dialogs (note that default is quite reasonable)
 | 
				
			||||||
    void SetDialogTitle(const wxString& title) { m_titleDialog = title; }
 | 
					    void SetDialogTitle(const wxString& title) { m_titleDialog = title; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // GUI code needs to know it's a wxFontMapper because there
 | 
				
			||||||
 | 
					    // are additional methods in the subclass.
 | 
				
			||||||
 | 
					    static wxFontMapper *Get();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
    // GetAltForEncoding() helper: tests for the existence of the given
 | 
					    // GetAltForEncoding() helper: tests for the existence of the given
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -163,6 +163,16 @@ wxFontMapper::~wxFontMapper()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* static */
 | 
				
			||||||
 | 
					// Declared as returning wxFontMapper when wxUSE_GUI=1.  Unfortunately, it's
 | 
				
			||||||
 | 
					// only implemented in wxBase library.  Note that if the last resort
 | 
				
			||||||
 | 
					// is taken and GUI code tries to treat it as a real wxFontMapper
 | 
				
			||||||
 | 
					// then you'd be in trouble.
 | 
				
			||||||
 | 
					wxFontMapper *wxFontMapper::Get()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    return (wxFontMapper*)wxFontMapperBase::Get();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
wxFontEncoding
 | 
					wxFontEncoding
 | 
				
			||||||
wxFontMapper::CharsetToEncoding(const wxString& charset, bool interactive)
 | 
					wxFontMapper::CharsetToEncoding(const wxString& charset, bool interactive)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user