svx/source/dialog/svxbmpnumvalueset.cxx | 2 +- svx/source/fmcomp/fmgridif.cxx | 4 ++-- svx/source/form/ParseContext.cxx | 2 +- svx/source/form/fmundo.cxx | 2 +- svx/source/stbctrls/zoomctrl.cxx | 2 +- svx/source/xml/xmlgrhlp.cxx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)
New commits: commit be8aee915815ba77c366d88c07626787e2f74443 Author: Takeshi Abe <t...@fixedpoint.jp> Date: Thu Jul 4 09:45:49 2013 +0900 Mark as const Change-Id: I24f04c541af1b93115781b4f4be4f01f137c481b diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx index e909321..7951fe3 100644 --- a/svx/source/dialog/svxbmpnumvalueset.cxx +++ b/svx/source/dialog/svxbmpnumvalueset.cxx @@ -127,7 +127,7 @@ static void lcl_PaintLevel(OutputDevice* pVDev, sal_Int16 nNumberingType, } void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) { - static sal_uInt16 aLinesArr[] = + static const sal_uInt16 aLinesArr[] = { 15, 10, 20, 30, diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 53781d2..32350b7 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -1272,7 +1272,7 @@ void FmXGridPeer::removeModifyListener(const Reference< ::com::sun::star::util:: Sequence< sal_Bool > SAL_CALL FmXGridPeer::queryFieldDataType( const Type& xType ) throw(RuntimeException) { // eine 'Konvertierungstabelle' - static sal_Bool bCanConvert[LAST_KNOWN_TYPE][4] = + static const sal_Bool bCanConvert[LAST_KNOWN_TYPE][4] = { { sal_False, sal_False, sal_False, sal_False }, // FormComponentType::CONTROL { sal_False, sal_False, sal_False, sal_False }, // FormComponentType::COMMANDBUTTON @@ -2767,7 +2767,7 @@ Sequence< ::com::sun::star::util::URL>& FmXGridPeer::getSupportedURLs() static Sequence< ::com::sun::star::util::URL> aSupported; if (aSupported.getLength() == 0) { - static OUString sSupported[] = { + static const OUString sSupported[] = { FMURL_RECORD_MOVEFIRST, FMURL_RECORD_MOVEPREV, FMURL_RECORD_MOVENEXT, diff --git a/svx/source/form/ParseContext.cxx b/svx/source/form/ParseContext.cxx index 49017c4..1e4dd6e 100644 --- a/svx/source/form/ParseContext.cxx +++ b/svx/source/form/ParseContext.cxx @@ -128,7 +128,7 @@ OString OSystemParseContext::getIntlKeywordAscii(InternationalKeyCode _eKey) con // ----------------------------------------------------------------------------- IParseContext::InternationalKeyCode OSystemParseContext::getIntlKeyCode(const OString& rToken) const { - static IParseContext::InternationalKeyCode Intl_TokenID[] = + static const IParseContext::InternationalKeyCode Intl_TokenID[] = { KEY_LIKE, KEY_NOT, KEY_NULL, KEY_TRUE, KEY_FALSE, KEY_IS, KEY_BETWEEN, KEY_OR, diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx index b66d2ed..db3f1f2 100644 --- a/svx/source/form/fmundo.cxx +++ b/svx/source/form/fmundo.cxx @@ -555,7 +555,7 @@ void SAL_CALL FmXUndoEnvironment::propertyChange(const PropertyChangeEvent& evt) return; // if it's a "default value" property of a control model, set the according "value" property - static OUString pDefaultValueProperties[] = { + static const OUString pDefaultValueProperties[] = { OUString(FM_PROP_DEFAULT_TEXT), OUString(FM_PROP_DEFAULTCHECKED), OUString(FM_PROP_DEFAULT_DATE), OUString(FM_PROP_DEFAULT_TIME), OUString(FM_PROP_DEFAULT_VALUE), OUString(FM_PROP_DEFAULT_SELECT_SEQ), OUString(FM_PROP_EFFECTIVE_DEFAULT) }; diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx index 8ad0c2e..80db8d4 100644 --- a/svx/source/stbctrls/zoomctrl.cxx +++ b/svx/source/stbctrls/zoomctrl.cxx @@ -57,7 +57,7 @@ ZoomPopup_Impl::ZoomPopup_Impl( sal_uInt16 nZ, sal_uInt16 nValueSet ) nZoom( nZ ) { - static sal_uInt16 aTable[] = + static const sal_uInt16 aTable[] = { SVX_ZOOM_ENABLE_50, ZOOM_50, SVX_ZOOM_ENABLE_100, ZOOM_100, diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 3eaf770..99d5548 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -463,7 +463,7 @@ String SvXMLGraphicHelper::ImplGetGraphicMimeType( const String& rFileName ) con const char* pMimeType; }; - static XMLGraphicMimeTypeMapper aMapper[] = + static const XMLGraphicMimeTypeMapper aMapper[] = { { "gif", "image/gif" }, { "png", "image/png" }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits