diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-07-05 00:22:28 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-07-05 10:38:08 +0900 |
commit | 8624906bc437b242ea0df17801bc77d0f273f32c (patch) | |
tree | 39505208fd8aded8f1d7926a8f6feec791bdb1aa | |
parent | 1d8ae0c040319ba7d969fa236b7a6bb22d0f55df (diff) |
Mark as const
Change-Id: Ia5f9724002da11da69f70bb0f71d44c3b5a19bcb
-rw-r--r-- | svl/source/numbers/numfmuno.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/cmis_repo_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/ext/ucpext_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_content.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/ContentProperties.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx index 826d53d902c1..95b012e9404a 100644 --- a/svl/source/numbers/numfmuno.cxx +++ b/svl/source/numbers/numfmuno.cxx @@ -62,7 +62,7 @@ using namespace com::sun::star; static const SfxItemPropertyMapEntry* lcl_GetNumberFormatPropertyMap() { - static SfxItemPropertyMapEntry aNumberFormatPropertyMap_Impl[] = + static const SfxItemPropertyMapEntry aNumberFormatPropertyMap_Impl[] = { {MAP_CHAR_LEN(PROPERTYNAME_FMTSTR), 0, &getCppuType((OUString*)0), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0}, {MAP_CHAR_LEN(PROPERTYNAME_LOCALE), 0, &getCppuType((lang::Locale*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0}, @@ -84,7 +84,7 @@ static const SfxItemPropertyMapEntry* lcl_GetNumberFormatPropertyMap() static const SfxItemPropertyMapEntry* lcl_GetNumberSettingsPropertyMap() { - static SfxItemPropertyMapEntry aNumberSettingsPropertyMap_Impl[] = + static const SfxItemPropertyMapEntry aNumberSettingsPropertyMap_Impl[] = { {MAP_CHAR_LEN(PROPERTYNAME_NOZERO), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND, 0}, {MAP_CHAR_LEN(PROPERTYNAME_NULLDATE), 0, &getCppuType((util::Date*)0), beans::PropertyAttribute::BOUND, 0}, diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index f15d4c120373..6de8d9490a85 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -1314,7 +1314,7 @@ namespace cmis uno::Sequence< ucb::CommandInfo > Content::getCommands( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) { - static ucb::CommandInfo aCommandInfoTable[] = + static const ucb::CommandInfo aCommandInfoTable[] = { // Required commands ucb::CommandInfo diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx index 4e311e4feb13..b79dbe6541c9 100644 --- a/ucb/source/ucp/cmis/cmis_repo_content.cxx +++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx @@ -208,7 +208,7 @@ namespace cmis uno::Sequence< ucb::CommandInfo > RepoContent::getCommands( const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ ) { - static ucb::CommandInfo aCommandInfoTable[] = + static const ucb::CommandInfo aCommandInfoTable[] = { // Required commands ucb::CommandInfo diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx index 9ba865081617..750da292331c 100644 --- a/ucb/source/ucp/ext/ucpext_content.cxx +++ b/ucb/source/ucp/ext/ucpext_content.cxx @@ -590,7 +590,7 @@ namespace ucb { namespace ucp { namespace ext //------------------------------------------------------------------------------------------------------------------ Sequence< Property > Content::getProperties( const Reference< XCommandEnvironment > & /*xEnv*/ ) { - static Property aProperties[] = + static const Property aProperties[] = { Property( OUString( "ContentType" ), diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 476fdcd88794..faa022bfe5f9 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -1261,7 +1261,7 @@ uno::Sequence< beans::Property > Content::getProperties( uno::Sequence< ucb::CommandInfo > Content::getCommands( const uno::Reference< ucb::XCommandEnvironment > & xEnv) { - static ucb::CommandInfo aCommandInfoTable[] = + static const ucb::CommandInfo aCommandInfoTable[] = { // Required commands ucb::CommandInfo diff --git a/ucb/source/ucp/gvfs/gvfs_content.cxx b/ucb/source/ucp/gvfs/gvfs_content.cxx index 22c9d1aef1e2..5645cd6924fd 100644 --- a/ucb/source/ucp/gvfs/gvfs_content.cxx +++ b/ucb/source/ucp/gvfs/gvfs_content.cxx @@ -1345,7 +1345,7 @@ uno::Sequence< beans::Property > Content::getProperties( uno::Sequence< ucb::CommandInfo > Content::getCommands( const uno::Reference< ucb::XCommandEnvironment > & xEnv ) { - static ucb::CommandInfo aCommandInfoTable[] = { + static const ucb::CommandInfo aCommandInfoTable[] = { // Required commands ucb::CommandInfo ( OUString( "getCommandInfo" ), diff --git a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx index f440f6ba0b9a..5143a2caabee 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx +++ b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx @@ -96,7 +96,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( if ( isReadOnly() ) { - static beans::Property aLinkPropertyInfoTable[] = + static const beans::Property aLinkPropertyInfoTable[] = { /////////////////////////////////////////////////////////// // Required properties @@ -155,7 +155,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( } else { - static beans::Property aLinkPropertyInfoTable[] = + static const beans::Property aLinkPropertyInfoTable[] = { /////////////////////////////////////////////////////////// // Required properties diff --git a/ucb/source/ucp/webdav-neon/ContentProperties.cxx b/ucb/source/ucp/webdav-neon/ContentProperties.cxx index fcc3c90d2f40..1439e0c7dc4d 100644 --- a/ucb/source/ucp/webdav-neon/ContentProperties.cxx +++ b/ucb/source/ucp/webdav-neon/ContentProperties.cxx @@ -534,7 +534,7 @@ namespace bool isCachable( OUString const & rName, bool isCaseSensitive ) { - static OUString aNonCachableProps [] = + static const OUString aNonCachableProps [] = { DAVProperties::LOCKDISCOVERY, diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index 0ca32557aeec..a1e78288cd56 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -551,7 +551,7 @@ namespace bool isCachable( OUString const & rName, bool isCaseSensitive ) { - static OUString aNonCachableProps [] = + static const OUString aNonCachableProps [] = { DAVProperties::LOCKDISCOVERY, diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index 314de78a3e1f..4b1d536416b0 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -749,7 +749,7 @@ Point SalLayout::GetDrawPosition( const Point& rRelative ) const int SalLayout::CalcAsianKerning( sal_UCS4 c, bool bLeft, bool /*TODO:? bVertical*/ ) { // http://www.asahi-net.or.jp/~sd5a-ucd/freetexts/jis/x4051/1995/appendix.html - static signed char nTable[0x30] = + static const signed char nTable[0x30] = { 0, -2, -2, 0, 0, 0, 0, 0, +2, -2, +2, -2, +2, -2, +2, -2, +2, -2, 0, 0, +2, -2, +2, -2, 0, 0, 0, 0, 0, +2, -2, -2, |