[Libreoffice-commits] core.git: svl/source ucb/source vcl/source
Takeshi Abe
tabe at fixedpoint.jp
Thu Jul 4 20:54:05 PDT 2013
svl/source/numbers/numfmuno.cxx | 4 ++--
ucb/source/ucp/cmis/cmis_content.cxx | 2 +-
ucb/source/ucp/cmis/cmis_repo_content.cxx | 2 +-
ucb/source/ucp/ext/ucpext_content.cxx | 2 +-
ucb/source/ucp/gio/gio_content.cxx | 2 +-
ucb/source/ucp/gvfs/gvfs_content.cxx | 2 +-
ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx | 4 ++--
ucb/source/ucp/webdav-neon/ContentProperties.cxx | 2 +-
ucb/source/ucp/webdav/ContentProperties.cxx | 2 +-
vcl/source/gdi/sallayout.cxx | 2 +-
10 files changed, 12 insertions(+), 12 deletions(-)
New commits:
commit 8624906bc437b242ea0df17801bc77d0f273f32c
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Fri Jul 5 00:22:28 2013 +0900
Mark as const
Change-Id: Ia5f9724002da11da69f70bb0f71d44c3b5a19bcb
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx
index 826d53d..95b012e 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 f15d4c1..6de8d94 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 4e311e4..b79dbe6 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 9ba8650..750da29 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 476fdcd..faa022b 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 22c9d1a..5645cd6 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 f440f6b..5143a2c 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 fcc3c90..1439e0c 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 0ca3255..a1e7828 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 314de78..4b1d536 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,
More information about the Libreoffice-commits
mailing list