From 76dd28afc9c0eb632a5dd20eb51704ee0bbc4b58 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 9 Oct 2018 16:27:11 +0200 Subject: loplugin:staticvar in various looks for variables that can be declared const and static i.e. they can be stored in the read-only linker segment and shared between different processes Change-Id: I8ddc6e5fa0f6b10d80c75d5952df8ddd311cf892 Reviewed-on: https://gerrit.libreoffice.org/61591 Tested-by: Jenkins Reviewed-by: Noel Grandin --- jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jvmfwk') diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx index b7a12685d9c4..b6b1f3113545 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx @@ -35,10 +35,10 @@ struct VendorSupportMapEntry createInstance_func createFunc; }; -extern VendorSupportMapEntry gVendorMap[]; +extern VendorSupportMapEntry const gVendorMap[]; #define BEGIN_VENDOR_MAP() \ -VendorSupportMapEntry gVendorMap[] ={ +VendorSupportMapEntry const gVendorMap[] ={ #define VENDOR_MAP_ENTRY(x,y) \ {x, & y::getJavaExePaths, & y::createInstance}, -- cgit