Kaydet (Commit) 696dd4d2 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Better initialization of members.

Change-Id: I5e11865222dbb966185585fe3fd413834c6c6b9a
üst 5068cf6a
...@@ -109,6 +109,13 @@ public: ...@@ -109,6 +109,13 @@ public:
static VisualStylesAPI vsAPI; static VisualStylesAPI vsAPI;
VisualStylesAPI::VisualStylesAPI() VisualStylesAPI::VisualStylesAPI()
: lpfnOpenThemeData( NULL ),
lpfnCloseThemeData( NULL ),
lpfnGetThemeBackgroundContentRect( NULL ),
lpfnDrawThemeBackground( NULL ),
lpfnDrawThemeText( NULL ),
lpfnGetThemePartSize( NULL ),
lpfnIsThemeActive( NULL )
{ {
OUString aLibraryName( RTL_CONSTASCII_USTRINGPARAM( "uxtheme.dll" ) ); OUString aLibraryName( RTL_CONSTASCII_USTRINGPARAM( "uxtheme.dll" ) );
mhModule = osl_loadModule( aLibraryName.pData, SAL_LOADMODULE_DEFAULT ); mhModule = osl_loadModule( aLibraryName.pData, SAL_LOADMODULE_DEFAULT );
...@@ -123,15 +130,6 @@ VisualStylesAPI::VisualStylesAPI() ...@@ -123,15 +130,6 @@ VisualStylesAPI::VisualStylesAPI()
lpfnGetThemePartSize = (GetThemePartSize_Proc_T)osl_getAsciiFunctionSymbol( mhModule, "GetThemePartSize" ); lpfnGetThemePartSize = (GetThemePartSize_Proc_T)osl_getAsciiFunctionSymbol( mhModule, "GetThemePartSize" );
lpfnIsThemeActive = (IsThemeActive_Proc_T)osl_getAsciiFunctionSymbol( mhModule, "IsThemeActive" ); lpfnIsThemeActive = (IsThemeActive_Proc_T)osl_getAsciiFunctionSymbol( mhModule, "IsThemeActive" );
} }
else
{
lpfnOpenThemeData = NULL;
lpfnCloseThemeData = NULL;
lpfnGetThemeBackgroundContentRect = NULL;
lpfnDrawThemeBackground = NULL;
lpfnDrawThemeText = NULL;
lpfnGetThemePartSize = NULL;
}
} }
VisualStylesAPI::~VisualStylesAPI() VisualStylesAPI::~VisualStylesAPI()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment