Kaydet (Commit) 12b1d1cd authored tarafından Takeshi Abe's avatar Takeshi Abe

Mark as const

Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502
üst cc569401
...@@ -471,7 +471,7 @@ Sequence< OUString > OTextInputStream::getSupportedServiceNames(void) throw() ...@@ -471,7 +471,7 @@ Sequence< OUString > OTextInputStream::getSupportedServiceNames(void) throw()
using namespace io_TextInputStream; using namespace io_TextInputStream;
static struct ImplementationEntry g_entries[] = static const struct ImplementationEntry g_entries[] =
{ {
{ {
TextInputStream_CreateInstance, TextInputStream_getImplementationName , TextInputStream_CreateInstance, TextInputStream_getImplementationName ,
......
...@@ -271,7 +271,7 @@ Sequence< OUString > OTextOutputStream::getSupportedServiceNames(void) throw() ...@@ -271,7 +271,7 @@ Sequence< OUString > OTextOutputStream::getSupportedServiceNames(void) throw()
using namespace io_TextOutputStream; using namespace io_TextOutputStream;
static struct ImplementationEntry g_entries[] = static const struct ImplementationEntry g_entries[] =
{ {
{ {
TextOutputStream_CreateInstance, TextOutputStream_getImplementationName , TextOutputStream_CreateInstance, TextOutputStream_getImplementationName ,
......
...@@ -311,7 +311,7 @@ namespace io_acceptor ...@@ -311,7 +311,7 @@ namespace io_acceptor
using namespace io_acceptor; using namespace io_acceptor;
static struct ImplementationEntry g_entries[] = static const struct ImplementationEntry g_entries[] =
{ {
{ {
acceptor_CreateInstance, acceptor_getImplementationName , acceptor_CreateInstance, acceptor_getImplementationName ,
......
...@@ -216,7 +216,7 @@ namespace stoc_connector ...@@ -216,7 +216,7 @@ namespace stoc_connector
} }
using namespace stoc_connector; using namespace stoc_connector;
static struct ImplementationEntry g_entries[] = static const struct ImplementationEntry g_entries[] =
{ {
{ {
connector_CreateInstance, connector_getImplementationName , connector_CreateInstance, connector_getImplementationName ,
......
...@@ -34,7 +34,7 @@ using namespace ::com::sun::star::registry; ...@@ -34,7 +34,7 @@ using namespace ::com::sun::star::registry;
using namespace io_stm; using namespace io_stm;
static struct ImplementationEntry g_entries[] = static const struct ImplementationEntry g_entries[] =
{ {
{ {
OPipeImpl_CreateInstance, OPipeImpl_getImplementationName , OPipeImpl_CreateInstance, OPipeImpl_getImplementationName ,
......
...@@ -401,7 +401,7 @@ Reference< XInterface > SAL_CALL LangGuess_Impl_create( ...@@ -401,7 +401,7 @@ Reference< XInterface > SAL_CALL LangGuess_Impl_create(
//#### EXPORTED ### functions to allow for registration and creation of the UNO component //#### EXPORTED ### functions to allow for registration and creation of the UNO component
//################################################################################################## //##################################################################################################
static struct ::cppu::ImplementationEntry s_component_entries [] = static const struct ::cppu::ImplementationEntry s_component_entries [] =
{ {
{ {
LangGuess_Impl_create, getImplementationName_LangGuess_Impl, LangGuess_Impl_create, getImplementationName_LangGuess_Impl,
......
...@@ -76,7 +76,7 @@ static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceName ...@@ -76,7 +76,7 @@ static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceName
// white space list: obtained from the fonts.config.txt of a Linux system. // white space list: obtained from the fonts.config.txt of a Linux system.
static sal_Unicode aWhiteSpaces[] = static const sal_Unicode aWhiteSpaces[] =
{ {
0x0020, /* SPACE */ 0x0020, /* SPACE */
0x00a0, /* NO-BREAK SPACE */ 0x00a0, /* NO-BREAK SPACE */
...@@ -128,7 +128,7 @@ static sal_Unicode aWhiteSpaces[] = ...@@ -128,7 +128,7 @@ static sal_Unicode aWhiteSpaces[] =
0xfffb /* INTERLINEAR ANNOTATION TERMINATOR */ 0xfffb /* INTERLINEAR ANNOTATION TERMINATOR */
}; };
static int nWhiteSpaces = sizeof( aWhiteSpaces ) / sizeof( aWhiteSpaces[0] ); static const int nWhiteSpaces = sizeof( aWhiteSpaces ) / sizeof( aWhiteSpaces[0] );
static bool lcl_IsWhiteSpace( sal_Unicode cChar ) static bool lcl_IsWhiteSpace( sal_Unicode cChar )
{ {
......
...@@ -51,7 +51,7 @@ static const char *aCH[] = ...@@ -51,7 +51,7 @@ static const char *aCH[] =
UPN_IS_USE_DICTIONARY_LIST, UPN_IS_USE_DICTIONARY_LIST,
}; };
static int nCHCount = sizeof(aCH) / sizeof(aCH[0]); static const int nCHCount = sizeof(aCH) / sizeof(aCH[0]);
PropertyChgHelper::PropertyChgHelper( PropertyChgHelper::PropertyChgHelper(
......
...@@ -87,7 +87,7 @@ void LwpBackgroundStuff::GetPattern(sal_uInt16 btPttnIndex, sal_uInt8* pPttnArra ...@@ -87,7 +87,7 @@ void LwpBackgroundStuff::GetPattern(sal_uInt16 btPttnIndex, sal_uInt8* pPttnArra
if (pPttnArray) if (pPttnArray)
{ {
assert((2 < btPttnIndex) && (btPttnIndex < 72)); assert((2 < btPttnIndex) && (btPttnIndex < 72));
sal_uInt8* pTempArray = s_pLwpPatternTab[btPttnIndex]; const sal_uInt8* pTempArray = s_pLwpPatternTab[btPttnIndex];
for(sal_uInt8 i = 0; i < 32; i++) for(sal_uInt8 i = 0; i < 32; i++)
{ {
pPttnArray[i] = (i%4 == 0) ? pTempArray[7-i/4] : 0; pPttnArray[i] = (i%4 == 0) ? pTempArray[7-i/4] : 0;
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#ifndef _LTPATTERNTABLE_HXX #ifndef _LTPATTERNTABLE_HXX
#define _LTPATTERNTABLE_HXX #define _LTPATTERNTABLE_HXX
static sal_uInt8 s_pLwpPatternTab[][8] = { //Id Name static const sal_uInt8 s_pLwpPatternTab[][8] = { //Id Name
{ 0xDF, 0xAF, 0x77, 0x77, 0x77, 0x77, 0xFA, 0xFD },//0 Transparent { 0xDF, 0xAF, 0x77, 0x77, 0x77, 0x77, 0xFA, 0xFD },//0 Transparent
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },//1 SolidForeground { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },//1 SolidForeground
{ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },//2 SolidBackground { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },//2 SolidBackground
......
...@@ -175,7 +175,7 @@ Reference< XInterface > SAL_CALL create_MyService2Impl( ...@@ -175,7 +175,7 @@ Reference< XInterface > SAL_CALL create_MyService2Impl(
/* shared lib exports implemented without helpers in service_impl1.cxx */ /* shared lib exports implemented without helpers in service_impl1.cxx */
namespace my_sc_impl namespace my_sc_impl
{ {
static struct ::cppu::ImplementationEntry s_component_entries [] = static const struct ::cppu::ImplementationEntry s_component_entries [] =
{ {
{ {
create_MyService1Impl, getImplementationName_MyService1Impl, create_MyService1Impl, getImplementationName_MyService1Impl,
......
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