Get rid of IsOk() accessor in Cairo implementation code.
This was quite useless as m_ok flag was public anyhow, just use it directly. Incidentally closes #16560. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -250,8 +250,6 @@ private:
|
|||||||
wxCairo();
|
wxCairo();
|
||||||
~wxCairo();
|
~wxCairo();
|
||||||
|
|
||||||
bool IsOk();
|
|
||||||
|
|
||||||
wxDynamicLibrary m_libCairo;
|
wxDynamicLibrary m_libCairo;
|
||||||
wxDynamicLibrary m_libPangoCairo;
|
wxDynamicLibrary m_libPangoCairo;
|
||||||
|
|
||||||
@@ -341,7 +339,7 @@ wxCairo::~wxCairo()
|
|||||||
if ( !ms_lib )
|
if ( !ms_lib )
|
||||||
{
|
{
|
||||||
ms_lib = new wxCairo();
|
ms_lib = new wxCairo();
|
||||||
if ( !ms_lib->IsOk() )
|
if ( !ms_lib->m_ok )
|
||||||
{
|
{
|
||||||
delete ms_lib;
|
delete ms_lib;
|
||||||
ms_lib = NULL;
|
ms_lib = NULL;
|
||||||
@@ -360,11 +358,6 @@ wxCairo::~wxCairo()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxCairo::IsOk()
|
|
||||||
{
|
|
||||||
return m_ok;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation of the functions themselves
|
// implementation of the functions themselves
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
Reference in New Issue
Block a user