Upcoming improved loplugin:staticanonymous -> redundantstatic: linguistic

Change-Id: I9f179db10c55f41e07c1f7fd519a58d68b7e6ad9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97614
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2020-07-01 13:21:56 +02:00
parent 7bbe1e6b98
commit 6a9f71f232
5 changed files with 16 additions and 16 deletions

View file

@ -76,16 +76,16 @@ using namespace linguistic;
// text stripping and dictionary saving.
#define EXTENSION_FOR_TITLE_TEXT "."
static const char* const pVerStr2 = "WBSWG2";
static const char* const pVerStr5 = "WBSWG5";
static const char* const pVerStr6 = "WBSWG6";
static const char* const pVerOOo7 = "OOoUserDict1";
const char* const pVerStr2 = "WBSWG2";
const char* const pVerStr5 = "WBSWG5";
const char* const pVerStr6 = "WBSWG6";
const char* const pVerOOo7 = "OOoUserDict1";
static const sal_Int16 DIC_VERSION_DONTKNOW = -1;
static const sal_Int16 DIC_VERSION_2 = 2;
static const sal_Int16 DIC_VERSION_5 = 5;
static const sal_Int16 DIC_VERSION_6 = 6;
static const sal_Int16 DIC_VERSION_7 = 7;
const sal_Int16 DIC_VERSION_DONTKNOW = -1;
const sal_Int16 DIC_VERSION_2 = 2;
const sal_Int16 DIC_VERSION_5 = 5;
const sal_Int16 DIC_VERSION_6 = 6;
const sal_Int16 DIC_VERSION_7 = 7;
static uno::Reference< XLinguServiceManager2 > GetLngSvcMgr_Impl()
{

View file

@ -68,7 +68,7 @@ static OUString GrammarCheckingIterator_getImplementationName() throw();
static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceNames() throw();
// white space list: obtained from the fonts.config.txt of a Linux system.
static const sal_Unicode aWhiteSpaces[] =
const sal_Unicode aWhiteSpaces[] =
{
0x0020, /* SPACE */
0x00a0, /* NO-BREAK SPACE */
@ -121,10 +121,10 @@ static const sal_Unicode aWhiteSpaces[] =
};
// Information about reason for proofreading (ProofInfo)
static const sal_Int32 PROOFINFO_GET_PROOFRESULT = 1;
static const sal_Int32 PROOFINFO_MARK_PARAGRAPH = 2;
const sal_Int32 PROOFINFO_GET_PROOFRESULT = 1;
const sal_Int32 PROOFINFO_MARK_PARAGRAPH = 2;
static const int nWhiteSpaces = SAL_N_ELEMENTS( aWhiteSpaces );
const int nWhiteSpaces = SAL_N_ELEMENTS( aWhiteSpaces );
static bool lcl_IsWhiteSpace( sal_Unicode cChar )
{

View file

@ -39,7 +39,7 @@ namespace linguistic
#define NUM_FLUSH_PROPS 6
static const struct
const struct
{
const char *pPropName;
sal_Int32 nPropHdl;

View file

@ -54,7 +54,7 @@ static const char *aCH[] =
UPN_IS_USE_DICTIONARY_LIST,
};
static const int nCHCount = SAL_N_ELEMENTS(aCH);
const int nCHCount = SAL_N_ELEMENTS(aCH);
PropertyChgHelper::PropertyChgHelper(

View file

@ -625,7 +625,7 @@ OUString ToLower( const OUString &rText, LanguageType nLanguage )
// sorted(!) array of unicode ranges for code points that are exclusively(!) used as numbers
// and thus may NOT not be part of names or words like the Chinese/Japanese number characters
static const sal_uInt32 the_aDigitZeroes [] =
const sal_uInt32 the_aDigitZeroes [] =
{
0x00000030, //0039 ; Decimal # Nd [10] DIGIT ZERO..DIGIT NINE
0x00000660, //0669 ; Decimal # Nd [10] ARABIC-INDIC DIGIT ZERO..ARABIC-INDIC DIGIT NINE