Upcoming improved loplugin:staticanonymous -> redundantstatic: svtools
Change-Id: I947b8def12bf27093dc9ad95077c0718dec959a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97696 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
using namespace utl;
|
||||
using namespace com::sun::star;
|
||||
|
||||
static const char g_sIsVisible[] = "/IsVisible";
|
||||
const char g_sIsVisible[] = "/IsVisible";
|
||||
|
||||
|
||||
namespace svtools
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <sal/macros.h>
|
||||
#include <tools/diagnose_ex.h>
|
||||
|
||||
static const sal_uInt16 aDPIArray[] = { 72, 96, 150, 200, 300, 600 };
|
||||
const sal_uInt16 aDPIArray[] = { 72, 96, 150, 200, 300, 600 };
|
||||
|
||||
#define DPI_COUNT (SAL_N_ELEMENTS(aDPIArray))
|
||||
|
||||
|
||||
@@ -792,7 +792,7 @@ struct ImplFSNameItem
|
||||
const char* mszUtf8Name;
|
||||
};
|
||||
|
||||
static const ImplFSNameItem aImplSimplifiedChinese[] =
|
||||
const ImplFSNameItem aImplSimplifiedChinese[] =
|
||||
{
|
||||
{ 50, "\xe5\x85\xab\xe5\x8f\xb7" },
|
||||
{ 55, "\xe4\xb8\x83\xe5\x8f\xb7" },
|
||||
|
||||
@@ -143,7 +143,7 @@ ImplRulerData::ImplRulerData() :
|
||||
{
|
||||
}
|
||||
|
||||
static const RulerUnitData aImplRulerUnitTab[RULER_UNIT_COUNT] =
|
||||
const RulerUnitData aImplRulerUnitTab[RULER_UNIT_COUNT] =
|
||||
{
|
||||
{ MapUnit::Map100thMM, 100, 25.0, 25.0, 50.0, 100.0, " mm" }, // MM
|
||||
{ MapUnit::Map100thMM, 1000, 100.0, 500.0, 1000.0, 1000.0, " cm" }, // CM
|
||||
|
||||
@@ -40,7 +40,7 @@ using namespace com::sun::star::task;
|
||||
|
||||
namespace
|
||||
{
|
||||
static struct JavaEvents {
|
||||
struct JavaEvents {
|
||||
bool bDisabledHandled : 1;
|
||||
bool bInvalidSettingsHandled : 1;
|
||||
bool bNotFoundHandled : 1;
|
||||
|
||||
@@ -55,7 +55,7 @@ struct SvtExtensionResIdMapping_Impl
|
||||
|
||||
}
|
||||
|
||||
static SvtExtensionResIdMapping_Impl const ExtensionMap_Impl[] =
|
||||
SvtExtensionResIdMapping_Impl const ExtensionMap_Impl[] =
|
||||
{
|
||||
{ "awk", true, STR_DESCRIPTION_SOURCEFILE, SvImageId::NONE },
|
||||
{ "bas", true, STR_DESCRIPTION_SOURCEFILE, SvImageId::NONE },
|
||||
@@ -182,7 +182,7 @@ struct SvtFactory2ExtensionMapping_Impl
|
||||
|
||||
// mapping from "private:factory" url to extension
|
||||
|
||||
static SvtFactory2ExtensionMapping_Impl const Fac2ExtMap_Impl[] =
|
||||
SvtFactory2ExtensionMapping_Impl const Fac2ExtMap_Impl[] =
|
||||
{
|
||||
{ "swriter", "odt" },
|
||||
{ "swriter/web", "html" },
|
||||
|
||||
@@ -59,7 +59,7 @@ static T search(TokenEntry<T> const (&dataTable)[LEN], const OUString & key, T n
|
||||
using HTML_TokenEntry = TokenEntry<HtmlTokenId>;
|
||||
|
||||
// this array is sorted by the name (even if it doesn't look like it from the constant names)
|
||||
static HTML_TokenEntry const aHTMLTokenTab[] = {
|
||||
HTML_TokenEntry const aHTMLTokenTab[] = {
|
||||
{OUStringLiteral(OOO_STRING_SVTOOLS_HTML_comment), HtmlTokenId::COMMENT},
|
||||
{OUStringLiteral(OOO_STRING_SVTOOLS_HTML_doctype), HtmlTokenId::DOCTYPE},
|
||||
{OUStringLiteral(OOO_STRING_SVTOOLS_HTML_anchor), HtmlTokenId::ANCHOR_ON},
|
||||
@@ -652,7 +652,7 @@ static bool bSortColorKeyWords = false;
|
||||
// Color names are not exported (source:
|
||||
// "http://www.uio.no/~mnbjerke/colors_w.html")
|
||||
// "http://www.infi.net/wwwimages/colorindex.html" seem to be buggy.
|
||||
static HTML_ColorEntry const aHTMLColorNameTab[] = {
|
||||
HTML_ColorEntry const aHTMLColorNameTab[] = {
|
||||
{ OUStringLiteral("aliceblue"), 0x00f0f8ffUL },
|
||||
{ OUStringLiteral("antiquewhite"), 0x00faebd7UL },
|
||||
{ OUStringLiteral("aqua"), 0x0000ffffUL },
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <tools/urlobj.hxx>
|
||||
|
||||
// Table for converting option values into strings
|
||||
static HTMLOptionEnum<HTMLScriptLanguage> const aScriptLangOptEnums[] =
|
||||
HTMLOptionEnum<HTMLScriptLanguage> const aScriptLangOptEnums[] =
|
||||
{
|
||||
{ OOO_STRING_SVTOOLS_HTML_LG_starbasic, HTMLScriptLanguage::StarBasic },
|
||||
{ OOO_STRING_SVTOOLS_HTML_LG_javascript, HTMLScriptLanguage::JavaScript },
|
||||
|
||||
@@ -51,7 +51,7 @@ const sal_Int32 MAX_ENTITY_LEN( 8 );
|
||||
// Tables to convert option values into strings
|
||||
|
||||
// <INPUT TYPE=xxx>
|
||||
static HTMLOptionEnum<HTMLInputType> const aInputTypeOptEnums[] =
|
||||
HTMLOptionEnum<HTMLInputType> const aInputTypeOptEnums[] =
|
||||
{
|
||||
{ OOO_STRING_SVTOOLS_HTML_IT_text, HTMLInputType::Text },
|
||||
{ OOO_STRING_SVTOOLS_HTML_IT_password, HTMLInputType::Password },
|
||||
@@ -69,7 +69,7 @@ static HTMLOptionEnum<HTMLInputType> const aInputTypeOptEnums[] =
|
||||
};
|
||||
|
||||
// <TABLE FRAME=xxx>
|
||||
static HTMLOptionEnum<HTMLTableFrame> const aTableFrameOptEnums[] =
|
||||
HTMLOptionEnum<HTMLTableFrame> const aTableFrameOptEnums[] =
|
||||
{
|
||||
{ OOO_STRING_SVTOOLS_HTML_TF_void, HTMLTableFrame::Void },
|
||||
{ OOO_STRING_SVTOOLS_HTML_TF_above, HTMLTableFrame::Above },
|
||||
@@ -84,7 +84,7 @@ static HTMLOptionEnum<HTMLTableFrame> const aTableFrameOptEnums[] =
|
||||
};
|
||||
|
||||
// <TABLE RULES=xxx>
|
||||
static HTMLOptionEnum<HTMLTableRules> const aTableRulesOptEnums[] =
|
||||
HTMLOptionEnum<HTMLTableRules> const aTableRulesOptEnums[] =
|
||||
{
|
||||
{ OOO_STRING_SVTOOLS_HTML_TR_none, HTMLTableRules::NONE },
|
||||
{ OOO_STRING_SVTOOLS_HTML_TR_groups, HTMLTableRules::Groups },
|
||||
@@ -1893,7 +1893,7 @@ enum class HtmlMeta {
|
||||
}
|
||||
|
||||
// <META NAME=xxx>
|
||||
static HTMLOptionEnum<HtmlMeta> const aHTMLMetaNameTable[] =
|
||||
HTMLOptionEnum<HtmlMeta> const aHTMLMetaNameTable[] =
|
||||
{
|
||||
{ OOO_STRING_SVTOOLS_HTML_META_author, HtmlMeta::Author },
|
||||
{ OOO_STRING_SVTOOLS_HTML_META_changed, HtmlMeta::Changed },
|
||||
|
||||
@@ -31,7 +31,7 @@ using namespace css::lang;
|
||||
|
||||
namespace
|
||||
{
|
||||
static const struct ::cppu::ImplementationEntry s_aServiceEntries[] =
|
||||
const struct ::cppu::ImplementationEntry s_aServiceEntries[] =
|
||||
{
|
||||
{
|
||||
// FilePicker should not use a constructor, it is only a
|
||||
|
||||
@@ -33,13 +33,13 @@ using css::lang::IllegalArgumentException;
|
||||
using css::beans::PropertyValue;
|
||||
|
||||
|
||||
static const char sAPI_ServiceName[] = "com.sun.star.container.XNameReplace";
|
||||
static const char sEventType[] = "EventType";
|
||||
static const char sMacroName[] = "MacroName";
|
||||
static const char sLibrary[] = "Library";
|
||||
static const char sStarBasic[] = "StarBasic";
|
||||
static const char sScript[] = "Script";
|
||||
static const char sNone[] = "None";
|
||||
const char sAPI_ServiceName[] = "com.sun.star.container.XNameReplace";
|
||||
const char sEventType[] = "EventType";
|
||||
const char sMacroName[] = "MacroName";
|
||||
const char sLibrary[] = "Library";
|
||||
const char sStarBasic[] = "StarBasic";
|
||||
const char sScript[] = "Script";
|
||||
const char sNone[] = "None";
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user