Kaydet (Commit) 8624906b authored tarafından Takeshi Abe's avatar Takeshi Abe

Mark as const

Change-Id: Ia5f9724002da11da69f70bb0f71d44c3b5a19bcb
üst 1d8ae0c0
...@@ -62,7 +62,7 @@ using namespace com::sun::star; ...@@ -62,7 +62,7 @@ using namespace com::sun::star;
static const SfxItemPropertyMapEntry* lcl_GetNumberFormatPropertyMap() 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_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}, {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() ...@@ -84,7 +84,7 @@ static const SfxItemPropertyMapEntry* lcl_GetNumberFormatPropertyMap()
static const SfxItemPropertyMapEntry* lcl_GetNumberSettingsPropertyMap() 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_NOZERO), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND, 0},
{MAP_CHAR_LEN(PROPERTYNAME_NULLDATE), 0, &getCppuType((util::Date*)0), beans::PropertyAttribute::BOUND, 0}, {MAP_CHAR_LEN(PROPERTYNAME_NULLDATE), 0, &getCppuType((util::Date*)0), beans::PropertyAttribute::BOUND, 0},
......
...@@ -1314,7 +1314,7 @@ namespace cmis ...@@ -1314,7 +1314,7 @@ namespace cmis
uno::Sequence< ucb::CommandInfo > Content::getCommands( uno::Sequence< ucb::CommandInfo > Content::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & xEnv ) const uno::Reference< ucb::XCommandEnvironment > & xEnv )
{ {
static ucb::CommandInfo aCommandInfoTable[] = static const ucb::CommandInfo aCommandInfoTable[] =
{ {
// Required commands // Required commands
ucb::CommandInfo ucb::CommandInfo
......
...@@ -208,7 +208,7 @@ namespace cmis ...@@ -208,7 +208,7 @@ namespace cmis
uno::Sequence< ucb::CommandInfo > RepoContent::getCommands( uno::Sequence< ucb::CommandInfo > RepoContent::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ ) const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
{ {
static ucb::CommandInfo aCommandInfoTable[] = static const ucb::CommandInfo aCommandInfoTable[] =
{ {
// Required commands // Required commands
ucb::CommandInfo ucb::CommandInfo
......
...@@ -590,7 +590,7 @@ namespace ucb { namespace ucp { namespace ext ...@@ -590,7 +590,7 @@ namespace ucb { namespace ucp { namespace ext
//------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------
Sequence< Property > Content::getProperties( const Reference< XCommandEnvironment > & /*xEnv*/ ) Sequence< Property > Content::getProperties( const Reference< XCommandEnvironment > & /*xEnv*/ )
{ {
static Property aProperties[] = static const Property aProperties[] =
{ {
Property( Property(
OUString( "ContentType" ), OUString( "ContentType" ),
......
...@@ -1261,7 +1261,7 @@ uno::Sequence< beans::Property > Content::getProperties( ...@@ -1261,7 +1261,7 @@ uno::Sequence< beans::Property > Content::getProperties(
uno::Sequence< ucb::CommandInfo > Content::getCommands( const uno::Reference< ucb::XCommandEnvironment > & xEnv) uno::Sequence< ucb::CommandInfo > Content::getCommands( const uno::Reference< ucb::XCommandEnvironment > & xEnv)
{ {
static ucb::CommandInfo aCommandInfoTable[] = static const ucb::CommandInfo aCommandInfoTable[] =
{ {
// Required commands // Required commands
ucb::CommandInfo ucb::CommandInfo
......
...@@ -1345,7 +1345,7 @@ uno::Sequence< beans::Property > Content::getProperties( ...@@ -1345,7 +1345,7 @@ uno::Sequence< beans::Property > Content::getProperties(
uno::Sequence< ucb::CommandInfo > Content::getCommands( uno::Sequence< ucb::CommandInfo > Content::getCommands(
const uno::Reference< ucb::XCommandEnvironment > & xEnv ) const uno::Reference< ucb::XCommandEnvironment > & xEnv )
{ {
static ucb::CommandInfo aCommandInfoTable[] = { static const ucb::CommandInfo aCommandInfoTable[] = {
// Required commands // Required commands
ucb::CommandInfo ucb::CommandInfo
( OUString( "getCommandInfo" ), ( OUString( "getCommandInfo" ),
......
...@@ -96,7 +96,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( ...@@ -96,7 +96,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
if ( isReadOnly() ) if ( isReadOnly() )
{ {
static beans::Property aLinkPropertyInfoTable[] = static const beans::Property aLinkPropertyInfoTable[] =
{ {
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
// Required properties // Required properties
...@@ -155,7 +155,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( ...@@ -155,7 +155,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties(
} }
else else
{ {
static beans::Property aLinkPropertyInfoTable[] = static const beans::Property aLinkPropertyInfoTable[] =
{ {
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
// Required properties // Required properties
......
...@@ -534,7 +534,7 @@ namespace ...@@ -534,7 +534,7 @@ namespace
bool isCachable( OUString const & rName, bool isCachable( OUString const & rName,
bool isCaseSensitive ) bool isCaseSensitive )
{ {
static OUString aNonCachableProps [] = static const OUString aNonCachableProps [] =
{ {
DAVProperties::LOCKDISCOVERY, DAVProperties::LOCKDISCOVERY,
......
...@@ -551,7 +551,7 @@ namespace ...@@ -551,7 +551,7 @@ namespace
bool isCachable( OUString const & rName, bool isCachable( OUString const & rName,
bool isCaseSensitive ) bool isCaseSensitive )
{ {
static OUString aNonCachableProps [] = static const OUString aNonCachableProps [] =
{ {
DAVProperties::LOCKDISCOVERY, DAVProperties::LOCKDISCOVERY,
......
...@@ -749,7 +749,7 @@ Point SalLayout::GetDrawPosition( const Point& rRelative ) const ...@@ -749,7 +749,7 @@ Point SalLayout::GetDrawPosition( const Point& rRelative ) const
int SalLayout::CalcAsianKerning( sal_UCS4 c, bool bLeft, bool /*TODO:? bVertical*/ ) 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 // 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, 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, +2, -2, 0, 0, +2, -2, +2, -2, 0, 0, 0, 0, 0, +2, -2, -2,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment