chart2/source/controller/main/_serviceregistration_controller.cxx | 2 +- chart2/source/model/inc/_serviceregistration_charttypes.hxx | 2 +- chart2/source/model/main/_serviceregistration_model.cxx | 2 +- chart2/source/model/template/_serviceregistration_charttypes.cxx | 4 ++-- chart2/source/tools/_serviceregistration_tools.cxx | 2 +- chart2/source/view/main/_serviceregistration_view.cxx | 2 +- connectivity/source/drivers/evoab2/EApi.cxx | 10 +++++----- connectivity/source/drivers/postgresql/pq_connection.cxx | 2 +- connectivity/source/drivers/postgresql/pq_driver.cxx | 2 +- cppu/source/typelib/typelib.cxx | 2 +- cppuhelper/test/cfg_test.cxx | 2 +- 11 files changed, 16 insertions(+), 16 deletions(-)
New commits: commit 3aea6c121d3b962d8efafe9b15d35a0f93ddceb3 Author: Takeshi Abe <t...@fixedpoint.jp> Date: Fri Aug 2 10:34:11 2013 +0900 Mark as const Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a diff --git a/chart2/source/controller/main/_serviceregistration_controller.cxx b/chart2/source/controller/main/_serviceregistration_controller.cxx index f2000b0..330c051 100644 --- a/chart2/source/controller/main/_serviceregistration_controller.cxx +++ b/chart2/source/controller/main/_serviceregistration_controller.cxx @@ -27,7 +27,7 @@ #include "ShapeToolbarController.hxx" #include <cppuhelper/implementationentry.hxx> -static struct ::cppu::ImplementationEntry g_entries_chart2_controller[] = +static const struct ::cppu::ImplementationEntry g_entries_chart2_controller[] = { { ::chart::ChartController::create diff --git a/chart2/source/model/inc/_serviceregistration_charttypes.hxx b/chart2/source/model/inc/_serviceregistration_charttypes.hxx index 6641fab..4851838 100644 --- a/chart2/source/model/inc/_serviceregistration_charttypes.hxx +++ b/chart2/source/model/inc/_serviceregistration_charttypes.hxx @@ -24,7 +24,7 @@ class ChartTypeEntriesForServiceRegistration { public: - static struct ::cppu::ImplementationEntry* + static const struct ::cppu::ImplementationEntry* getImplementationEntries(); }; diff --git a/chart2/source/model/main/_serviceregistration_model.cxx b/chart2/source/model/main/_serviceregistration_model.cxx index 30873a4..95e4d4a 100644 --- a/chart2/source/model/main/_serviceregistration_model.cxx +++ b/chart2/source/model/main/_serviceregistration_model.cxx @@ -36,7 +36,7 @@ #include "_serviceregistration_charttypes.hxx" -static struct ::cppu::ImplementationEntry g_entries_chart2_model[] = +static const struct ::cppu::ImplementationEntry g_entries_chart2_model[] = { { ::chart::ChartModel::create diff --git a/chart2/source/model/template/_serviceregistration_charttypes.cxx b/chart2/source/model/template/_serviceregistration_charttypes.cxx index 4d9854d..299f162 100644 --- a/chart2/source/model/template/_serviceregistration_charttypes.cxx +++ b/chart2/source/model/template/_serviceregistration_charttypes.cxx @@ -32,7 +32,7 @@ namespace { -static struct ::cppu::ImplementationEntry g_entries_chart2_charttypes[] = +static const struct ::cppu::ImplementationEntry g_entries_chart2_charttypes[] = { { ::chart::AreaChartType::create @@ -119,7 +119,7 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_charttypes[] = } // anonymous namespace -struct ::cppu::ImplementationEntry * +const struct ::cppu::ImplementationEntry * ChartTypeEntriesForServiceRegistration::getImplementationEntries() { return g_entries_chart2_charttypes; diff --git a/chart2/source/tools/_serviceregistration_tools.cxx b/chart2/source/tools/_serviceregistration_tools.cxx index 42c38d6..7870ad0 100644 --- a/chart2/source/tools/_serviceregistration_tools.cxx +++ b/chart2/source/tools/_serviceregistration_tools.cxx @@ -29,7 +29,7 @@ #include "InternalDataProvider.hxx" #include "charttoolsdllapi.hxx" -static struct ::cppu::ImplementationEntry g_entries_chart2_tools[] = +static const struct ::cppu::ImplementationEntry g_entries_chart2_tools[] = { { ::chart::LabeledDataSequence::create diff --git a/chart2/source/view/main/_serviceregistration_view.cxx b/chart2/source/view/main/_serviceregistration_view.cxx index e15fedb..472666e 100644 --- a/chart2/source/view/main/_serviceregistration_view.cxx +++ b/chart2/source/view/main/_serviceregistration_view.cxx @@ -21,7 +21,7 @@ #include "ChartView.hxx" -static struct ::cppu::ImplementationEntry g_entries_chart2_view[] = +static const struct ::cppu::ImplementationEntry g_entries_chart2_view[] = { { ::chart::ChartView::create diff --git a/connectivity/source/drivers/evoab2/EApi.cxx b/connectivity/source/drivers/evoab2/EApi.cxx index f8b9048..410422c 100644 --- a/connectivity/source/drivers/evoab2/EApi.cxx +++ b/connectivity/source/drivers/evoab2/EApi.cxx @@ -41,7 +41,7 @@ struct ApiMap SymbolFunc *ref_value; }; -static ApiMap aCommonApiMap[] = +static const ApiMap aCommonApiMap[] = { SYM_MAP( eds_check_version ), SYM_MAP( e_contact_field_name ), @@ -64,7 +64,7 @@ static ApiMap aCommonApiMap[] = }; //< 3.6 api -static ApiMap aOldApiMap[] = +static const ApiMap aOldApiMap[] = { SYM_MAP( e_book_get_addressbooks ), SYM_MAP( e_book_get_uri ), @@ -77,7 +77,7 @@ static ApiMap aOldApiMap[] = }; //>= 3.6 api -static ApiMap aNewApiMap[] = +static const ApiMap aNewApiMap[] = { SYM_MAP( e_source_registry_list_sources ), SYM_MAP( e_source_registry_new_sync ), @@ -94,13 +94,13 @@ static ApiMap aNewApiMap[] = }; //== indirect read access (3.6 only) -static ApiMap aClientApiMap36[] = +static const ApiMap aClientApiMap36[] = { SYM_MAP( e_book_client_new ) }; //>= direct read access API (>= 3.8) -static ApiMap aClientApiMap38[] = +static const ApiMap aClientApiMap38[] = { SYM_MAP( e_book_client_connect_direct_sync ) }; diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index e085bcb..e9cd423 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -732,7 +732,7 @@ void log( ConnectionSettings *settings, sal_Int32 level, const char *str ) -static struct cppu::ImplementationEntry g_entries[] = +static const struct cppu::ImplementationEntry g_entries[] = { { pq_sdbc_driver::ConnectionCreateInstance, pq_sdbc_driver::ConnectionGetImplementationName, diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx index f79c33e..f701e31 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.cxx +++ b/connectivity/source/drivers/postgresql/pq_driver.cxx @@ -304,7 +304,7 @@ void OOneInstanceComponentFactory::disposing() } -static struct cppu::ImplementationEntry g_entries[] = +static const struct cppu::ImplementationEntry g_entries[] = { { pq_sdbc_driver::DriverCreateInstance, pq_sdbc_driver::DriverGetImplementationName, diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 6fcda8a..b8cba63 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -2544,7 +2544,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_setCacheSize( sal_Int32 nNewSize } -static sal_Bool s_aAssignableFromTab[11][11] = +static const sal_Bool s_aAssignableFromTab[11][11] = { /* from CH,BO,BY,SH,US,LO,UL,HY,UH,FL,DO */ /* TypeClass_CHAR */ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, diff --git a/cppuhelper/test/cfg_test.cxx b/cppuhelper/test/cfg_test.cxx index dbbc3e0..c031fb7 100644 --- a/cppuhelper/test/cfg_test.cxx +++ b/cppuhelper/test/cfg_test.cxx @@ -189,7 +189,7 @@ static Reference< XInterface > SAL_CALL ServiceImpl1_create( } // namespace cfg_test -static struct ImplementationEntry g_entries[] = +static const struct ImplementationEntry g_entries[] = { { ::cfg_test::ServiceImpl0_create, ::cfg_test::impl0_getImplementationName, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits