From c9253818ec8252169c20450b41878be459568d95 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 30 Jul 2017 12:16:31 +0200 Subject: loplugin:oncevar extend oncevar to any POD type Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0 Reviewed-on: https://gerrit.libreoffice.org/40564 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppuhelper/qa') diff --git a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx index a535d3c7283c..9110cc680476 100644 --- a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx +++ b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx @@ -218,7 +218,7 @@ namespace cppu_ifcontainer void testOMultiTypeInterfaceContainerHelperInt32() { - sal_Int32 pTypes[nTests] = + sal_Int32 const pTypes[nTests] = { 0, -1, @@ -239,7 +239,7 @@ namespace cppu_ifcontainer typedef cppu::OMultiTypeInterfaceContainerHelperVar< char const *, void, rtl::CStringEqual> StrContainer; - const char *pTypes[nTests] = + const char * const pTypes[nTests] = { "this_is", "such", "fun", "writing", "unit", "tests", "when", "it", "works", "anyway" }; -- cgit