diff options
Diffstat (limited to 'xmloff/source/forms')
-rw-r--r-- | xmloff/source/forms/elementimport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/formenums.cxx | 14 | ||||
-rw-r--r-- | xmloff/source/forms/gridcolumnproptranslator.cxx | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx index 193e771bdc4b..82516023b67f 100644 --- a/xmloff/source/forms/elementimport.cxx +++ b/xmloff/source/forms/elementimport.cxx @@ -97,7 +97,7 @@ namespace xmloff { if ( s_sElementTranslations.empty() ) { // initialize - for (ElementType eType=(ElementType)0; eType<UNKNOWN; ++eType) + for (ElementType eType=ElementType(0); eType<UNKNOWN; ++eType) s_sElementTranslations[OUString::createFromAscii(getElementName(eType))] = eType; } MapString2Element::const_iterator aPos = s_sElementTranslations.find(_rName); diff --git a/xmloff/source/forms/formenums.cxx b/xmloff/source/forms/formenums.cxx index f8a1feb08201..62d1e7e418e4 100644 --- a/xmloff/source/forms/formenums.cxx +++ b/xmloff/source/forms/formenums.cxx @@ -49,13 +49,13 @@ const SvXMLEnumMapEntry<FormSubmitEncoding> aSubmitEncodingMap[] = { XML_APPLICATION_X_WWW_FORM_URLENCODED, FormSubmitEncoding_URL }, { XML_MULTIPART_FORMDATA, FormSubmitEncoding_MULTIPART }, { XML_APPLICATION_TEXT, FormSubmitEncoding_TEXT }, - { XML_TOKEN_INVALID, (FormSubmitEncoding)0 } + { XML_TOKEN_INVALID, FormSubmitEncoding(0) } }; const SvXMLEnumMapEntry<FormSubmitMethod> aSubmitMethodMap[] = { { XML_GET, FormSubmitMethod_GET }, { XML_POST, FormSubmitMethod_POST }, - { XML_TOKEN_INVALID, (FormSubmitMethod)0 } + { XML_TOKEN_INVALID, FormSubmitMethod(0) } }; const SvXMLEnumMapEntry<sal_Int32> aCommandTypeMap[] = { @@ -69,14 +69,14 @@ const SvXMLEnumMapEntry<NavigationBarMode> aNavigationTypeMap[] = { XML_NONE, NavigationBarMode_NONE }, { XML_CURRENT, NavigationBarMode_CURRENT }, { XML_PARENT, NavigationBarMode_PARENT }, - { XML_TOKEN_INVALID, (NavigationBarMode)0 } + { XML_TOKEN_INVALID, NavigationBarMode(0) } }; const SvXMLEnumMapEntry<TabulatorCycle> aTabulatorCycleMap[] = { { XML_RECORDS, TabulatorCycle_RECORDS }, { XML_CURRENT, TabulatorCycle_CURRENT }, { XML_PAGE, TabulatorCycle_PAGE }, - { XML_TOKEN_INVALID, (TabulatorCycle)0 } + { XML_TOKEN_INVALID, TabulatorCycle(0) } }; const SvXMLEnumMapEntry<FormButtonType> aFormButtonTypeMap[] = { @@ -84,7 +84,7 @@ const SvXMLEnumMapEntry<FormButtonType> aFormButtonTypeMap[] = { XML_SUBMIT, FormButtonType_SUBMIT }, { XML_RESET, FormButtonType_RESET }, { XML_URL, FormButtonType_URL }, - { XML_TOKEN_INVALID, (FormButtonType)0 } + { XML_TOKEN_INVALID, FormButtonType(0) } }; const SvXMLEnumMapEntry<ListSourceType> aListSourceTypeMap[] = { @@ -94,7 +94,7 @@ const SvXMLEnumMapEntry<ListSourceType> aListSourceTypeMap[] = { XML_SQL, ListSourceType_SQL }, { XML_SQL_PASS_THROUGH, ListSourceType_SQLPASSTHROUGH }, { XML_TABLE_FIELDS, ListSourceType_TABLEFIELDS }, - { XML_TOKEN_INVALID, (ListSourceType)0 } + { XML_TOKEN_INVALID, ListSourceType(0) } }; // check state of a checkbox const SvXMLEnumMapEntry<TriState> aCheckStateMap[] = @@ -102,7 +102,7 @@ const SvXMLEnumMapEntry<TriState> aCheckStateMap[] = { XML_UNCHECKED, TRISTATE_FALSE }, { XML_CHECKED, TRISTATE_TRUE }, { XML_UNKNOWN, TRISTATE_INDET }, - { XML_TOKEN_INVALID, (TriState)0 } + { XML_TOKEN_INVALID, TriState(0) } }; const SvXMLEnumMapEntry<sal_Int16> aTextAlignMap[] = { diff --git a/xmloff/source/forms/gridcolumnproptranslator.cxx b/xmloff/source/forms/gridcolumnproptranslator.cxx index db8970a07e23..e980a6967f05 100644 --- a/xmloff/source/forms/gridcolumnproptranslator.cxx +++ b/xmloff/source/forms/gridcolumnproptranslator.cxx @@ -100,7 +100,7 @@ namespace xmloff const AlignmentTranslationEntry* pTranslation = AlignmentTranslations; while ( ParagraphAdjust::ParagraphAdjust_MAKE_FIXED_SIZE != pTranslation->nParagraphValue) { - if ( (ParagraphAdjust)nValue == pTranslation->nParagraphValue) + if ( static_cast<ParagraphAdjust>(nValue) == pTranslation->nParagraphValue) { rValue <<= pTranslation->nControlValue; return; |