diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-11 15:37:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-11 15:38:30 +0100 |
commit | 123e2c3e9350463fde38fbcbb522e3d6d8340ee6 (patch) | |
tree | c0f9350733d93f6a906cfe2f19b5dac66a655283 /linguistic | |
parent | 90f91088d238469b4a2262c91de3117ba40f5bde (diff) |
Revert "Don't hold css::uno::Type instances by pointer"
This reverts commit 90f91088d238469b4a2262c91de3117ba40f5bde for now:
Ach, old GCC doesn't like plain string literals to initialize members
of OUString type...
Change-Id: I50563a00406259bb5d41831e2a2796762450d097
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngopt.cxx | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index 02029c740b16..800ed673994e 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -146,47 +146,47 @@ static const SfxItemPropertyMapEntry* lcl_GetLinguProps() { static const SfxItemPropertyMapEntry aLinguProps[] = { - { UPN_DEFAULT_LANGUAGE, WID_DEFAULT_LANGUAGE, - ::getCppuType( (sal_Int16*)0 ), 0, 0 }, - { UPN_DEFAULT_LOCALE, WID_DEFAULT_LOCALE, - ::getCppuType( (Locale* )0), 0, 0 }, - { UPN_DEFAULT_LOCALE_CJK, WID_DEFAULT_LOCALE_CJK, - ::getCppuType( (Locale* )0), 0, 0 }, - { UPN_DEFAULT_LOCALE_CTL, WID_DEFAULT_LOCALE_CTL, - ::getCppuType( (Locale* )0), 0, 0 }, - { UPN_HYPH_MIN_LEADING, WID_HYPH_MIN_LEADING, - ::getCppuType( (sal_Int16*)0 ), 0, 0 }, - { UPN_HYPH_MIN_TRAILING, WID_HYPH_MIN_TRAILING, - ::getCppuType( (sal_Int16*)0 ), 0, 0 }, - { UPN_HYPH_MIN_WORD_LENGTH, WID_HYPH_MIN_WORD_LENGTH, - ::getCppuType( (sal_Int16*)0 ), 0, 0 }, - { UPN_IS_GERMAN_PRE_REFORM, WID_IS_GERMAN_PRE_REFORM, /*! deprecated !*/ - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_HYPH_AUTO, WID_IS_HYPH_AUTO, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_HYPH_SPECIAL, WID_IS_HYPH_SPECIAL, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_IGNORE_CONTROL_CHARACTERS, WID_IS_IGNORE_CONTROL_CHARACTERS, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_SPELL_AUTO, WID_IS_SPELL_AUTO, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_SPELL_CAPITALIZATION, WID_IS_SPELL_CAPITALIZATION, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_SPELL_HIDE, WID_IS_SPELL_HIDE, /*! deprecated !*/ - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_SPELL_IN_ALL_LANGUAGES, WID_IS_SPELL_IN_ALL_LANGUAGES, /*! deprecated !*/ - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_SPELL_SPECIAL, WID_IS_SPELL_SPECIAL, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_SPELL_UPPER_CASE, WID_IS_SPELL_UPPER_CASE, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_SPELL_WITH_DIGITS, WID_IS_SPELL_WITH_DIGITS, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_USE_DICTIONARY_LIST, WID_IS_USE_DICTIONARY_LIST, - ::getBooleanCppuType(), 0, 0 }, - { UPN_IS_WRAP_REVERSE, WID_IS_WRAP_REVERSE, - ::getBooleanCppuType(), 0, 0 }, - {} + { MAP_CHAR_LEN(UPN_DEFAULT_LANGUAGE), WID_DEFAULT_LANGUAGE, + &::getCppuType( (sal_Int16*)0 ), 0, 0 }, + { MAP_CHAR_LEN(UPN_DEFAULT_LOCALE), WID_DEFAULT_LOCALE, + &::getCppuType( (Locale* )0), 0, 0 }, + { MAP_CHAR_LEN(UPN_DEFAULT_LOCALE_CJK), WID_DEFAULT_LOCALE_CJK, + &::getCppuType( (Locale* )0), 0, 0 }, + { MAP_CHAR_LEN(UPN_DEFAULT_LOCALE_CTL), WID_DEFAULT_LOCALE_CTL, + &::getCppuType( (Locale* )0), 0, 0 }, + { MAP_CHAR_LEN(UPN_HYPH_MIN_LEADING), WID_HYPH_MIN_LEADING, + &::getCppuType( (sal_Int16*)0 ), 0, 0 }, + { MAP_CHAR_LEN(UPN_HYPH_MIN_TRAILING), WID_HYPH_MIN_TRAILING, + &::getCppuType( (sal_Int16*)0 ), 0, 0 }, + { MAP_CHAR_LEN(UPN_HYPH_MIN_WORD_LENGTH), WID_HYPH_MIN_WORD_LENGTH, + &::getCppuType( (sal_Int16*)0 ), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_GERMAN_PRE_REFORM), WID_IS_GERMAN_PRE_REFORM, /*! deprecated !*/ + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_HYPH_AUTO), WID_IS_HYPH_AUTO, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_HYPH_SPECIAL), WID_IS_HYPH_SPECIAL, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_IGNORE_CONTROL_CHARACTERS), WID_IS_IGNORE_CONTROL_CHARACTERS, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_SPELL_AUTO), WID_IS_SPELL_AUTO, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_SPELL_CAPITALIZATION), WID_IS_SPELL_CAPITALIZATION, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_SPELL_HIDE), WID_IS_SPELL_HIDE, /*! deprecated !*/ + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_SPELL_IN_ALL_LANGUAGES), WID_IS_SPELL_IN_ALL_LANGUAGES, /*! deprecated !*/ + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_SPELL_SPECIAL), WID_IS_SPELL_SPECIAL, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_SPELL_UPPER_CASE), WID_IS_SPELL_UPPER_CASE, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_SPELL_WITH_DIGITS), WID_IS_SPELL_WITH_DIGITS, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_USE_DICTIONARY_LIST), WID_IS_USE_DICTIONARY_LIST, + &::getBooleanCppuType(), 0, 0 }, + { MAP_CHAR_LEN(UPN_IS_WRAP_REVERSE), WID_IS_WRAP_REVERSE, + &::getBooleanCppuType(), 0, 0 }, + { 0,0,0,0,0,0 } }; return aLinguProps; } |