Upcoming improved loplugin:staticanonymous -> redundantstatic: stoc

Change-Id: I993e4c0aef41b0925678d7744a989ad5539cc80e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97693
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2020-07-02 08:10:25 +02:00
parent d72e9cc0d1
commit 45898370bc
8 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ sal_Bool IdlClassImpl::equals( const Reference< XIdlClass >& xType )
(xType->getTypeClass() == _eTypeClass) && (xType->getName() == _aName));
}
static const bool s_aAssignableFromTab[11][11] =
const bool s_aAssignableFromTab[11][11] =
{
/* from CH, BO, BY, SH, US, LO, UL, HY, UH, FL, DO */
/* TypeClass_CHAR */ { true, false, false, false, false, false, false, false, false, false, false },
@@ -56,27 +56,27 @@ using namespace osl;
namespace {
static constexpr OUStringLiteral slash_UNO_slash_REGISTRY_LINKS
constexpr OUStringLiteral slash_UNO_slash_REGISTRY_LINKS
= "/UNO/REGISTRY_LINKS";
static constexpr OUStringLiteral slash_IMPLEMENTATIONS
constexpr OUStringLiteral slash_IMPLEMENTATIONS
= "/IMPLEMENTATIONS";
static constexpr OUStringLiteral slash_UNO
constexpr OUStringLiteral slash_UNO
= "/UNO";
static constexpr OUStringLiteral slash_UNO_slash_SERVICES
constexpr OUStringLiteral slash_UNO_slash_SERVICES
= "/UNO/SERVICES";
static constexpr OUStringLiteral slash_UNO_slash_SINGLETONS
constexpr OUStringLiteral slash_UNO_slash_SINGLETONS
= "/UNO/SINGLETONS";
static constexpr OUStringLiteral slash_SERVICES
constexpr OUStringLiteral slash_SERVICES
= "/SERVICES/";
static constexpr OUStringLiteral slash_UNO_slash_LOCATION
constexpr OUStringLiteral slash_UNO_slash_LOCATION
= "/UNO/LOCATION";
static constexpr OUStringLiteral slash_UNO_slash_ACTIVATOR
constexpr OUStringLiteral slash_UNO_slash_ACTIVATOR
= "/UNO/ACTIVATOR";
static constexpr OUStringLiteral colon_old
constexpr OUStringLiteral colon_old
= ":old";
static constexpr OUStringLiteral com_sun_star_registry_SimpleRegistry
constexpr OUStringLiteral com_sun_star_registry_SimpleRegistry
= "com.sun.star.registry.SimpleRegistry";
static constexpr OUStringLiteral Registry
constexpr OUStringLiteral Registry
= "Registry";
// static deleteAllLinkReferences()
+1 -1
View File
@@ -1109,7 +1109,7 @@ static Reference<XInterface> InvocationService_CreateInstance( const Reference<X
}
using namespace stoc_inv;
static const struct ImplementationEntry g_entries[] =
const struct ImplementationEntry g_entries[] =
{
{
InvocationService_CreateInstance, inv_getImplementationName,
@@ -892,7 +892,7 @@ static Reference< XInterface > FactoryImpl_create(
}
static const struct ::cppu::ImplementationEntry g_entries[] =
const struct ::cppu::ImplementationEntry g_entries[] =
{
{
::stoc_invadp::FactoryImpl_create,
+1 -1
View File
@@ -350,7 +350,7 @@ static css::uno::Reference<XInterface> JavaComponentLoader_CreateInstance(const
using namespace stoc_javaloader;
static const struct ImplementationEntry g_entries[] =
const struct ImplementationEntry g_entries[] =
{
{
JavaComponentLoader_CreateInstance, loader_getImplementationName,
+1 -1
View File
@@ -134,7 +134,7 @@ void NamingService_Impl::revokeObject( const OUString& Name )
}
using namespace stoc_namingservice;
static const struct ImplementationEntry g_entries[] =
const struct ImplementationEntry g_entries[] =
{
{
NamingService_Impl_create, ns_getImplementationName,
+1 -1
View File
@@ -432,7 +432,7 @@ Reference< XInterface > proxyfac_create(
return xRet;
}
static const ::cppu::ImplementationEntry g_entries [] =
const ::cppu::ImplementationEntry g_entries [] =
{
{
proxyfac_create, proxyfac_getImplementationName,
+1 -1
View File
@@ -62,7 +62,7 @@ using namespace stoc_sec;
namespace {
// static stuff initialized when loading lib
static OUString s_envType = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
OUString s_envType = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
const char s_acRestriction[] = "access-control.restriction";