diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-20 23:29:28 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-20 23:29:53 +0200 |
commit | 227af32d8c6d5e3649c83fcdb274298bc7faa294 (patch) | |
tree | 8490a6c94094d1fbf5a190a911070c3142d3cca7 /sfx2/source/sidebar | |
parent | 0f836296ea3cdc10326ad54983b634168285b8e2 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r-- | sfx2/source/sidebar/Theme.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx index 151cfed648e2..701a09474082 100644 --- a/sfx2/source/sidebar/Theme.cxx +++ b/sfx2/source/sidebar/Theme.cxx @@ -904,22 +904,22 @@ cssu::Type Theme::GetCppuType (const PropertyType eType) switch(eType) { case PT_Image: - return getCppuType((rtl::OUString*)NULL); + return cppu::UnoType<rtl::OUString>::get(); case PT_Color: - return getCppuType((sal_uInt32*)NULL); + return cppu::UnoType<sal_uInt32>::get(); case PT_Paint: return getCppuVoidType(); case PT_Integer: - return getCppuType((sal_Int32*)NULL); + return cppu::UnoType<sal_Int32>::get(); case PT_Boolean: - return getCppuType((sal_Bool*)NULL); + return cppu::UnoType<sal_Bool>::get(); case PT_Rectangle: - return getCppuType((awt::Rectangle*)NULL); + return cppu::UnoType<awt::Rectangle>::get(); case PT_Invalid: default: |