diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-06-25 13:33:09 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-06-25 18:09:17 +0200 |
commit | 696dd4d25f6a50d600f31abcb524b4f36a46f00d (patch) | |
tree | d2cebba284fb2f65ee4e5f5a55851ba0550b12ff | |
parent | 5068cf6a509240c6b12a4a005e7c20120f13d13e (diff) |
Better initialization of members.
Change-Id: I5e11865222dbb966185585fe3fd413834c6c6b9a
-rw-r--r-- | vcl/win/source/gdi/salnativewidgets-luna.cxx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx index e595aa0c905d..ded121daf3a5 100644 --- a/vcl/win/source/gdi/salnativewidgets-luna.cxx +++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx @@ -109,6 +109,13 @@ public: static VisualStylesAPI vsAPI; VisualStylesAPI::VisualStylesAPI() + : lpfnOpenThemeData( NULL ), + lpfnCloseThemeData( NULL ), + lpfnGetThemeBackgroundContentRect( NULL ), + lpfnDrawThemeBackground( NULL ), + lpfnDrawThemeText( NULL ), + lpfnGetThemePartSize( NULL ), + lpfnIsThemeActive( NULL ) { OUString aLibraryName( RTL_CONSTASCII_USTRINGPARAM( "uxtheme.dll" ) ); mhModule = osl_loadModule( aLibraryName.pData, SAL_LOADMODULE_DEFAULT ); @@ -123,15 +130,6 @@ VisualStylesAPI::VisualStylesAPI() lpfnGetThemePartSize = (GetThemePartSize_Proc_T)osl_getAsciiFunctionSymbol( mhModule, "GetThemePartSize" ); lpfnIsThemeActive = (IsThemeActive_Proc_T)osl_getAsciiFunctionSymbol( mhModule, "IsThemeActive" ); } - else - { - lpfnOpenThemeData = NULL; - lpfnCloseThemeData = NULL; - lpfnGetThemeBackgroundContentRect = NULL; - lpfnDrawThemeBackground = NULL; - lpfnDrawThemeText = NULL; - lpfnGetThemePartSize = NULL; - } } VisualStylesAPI::~VisualStylesAPI() |