From d902e04bafcf7436c4c05140e82e677cd6bc826f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jun 2020 15:25:15 +0200 Subject: Upcoming improved loplugin:staticanonymous -> redundantstatic: basic Change-Id: I1046ee1ea28e19afa51b0e20ee573105ced77535 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97522 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basic/source/comp/buffer.cxx | 2 +- basic/source/comp/exprgen.cxx | 2 +- basic/source/comp/parser.cxx | 2 +- basic/source/comp/token.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'basic/source/comp') diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx index 80017fcca354..3d8f6623c525 100644 --- a/basic/source/comp/buffer.cxx +++ b/basic/source/comp/buffer.cxx @@ -22,7 +22,7 @@ #include -const static sal_uInt32 UP_LIMIT=0xFFFFFF00; +const sal_uInt32 UP_LIMIT=0xFFFFFF00; // The SbiBuffer will be expanded in increments of at least 16 Bytes. // This is necessary, because many classes emanate from a buffer length diff --git a/basic/source/comp/exprgen.cxx b/basic/source/comp/exprgen.cxx index 2baf28a803e3..76f1ab776a63 100644 --- a/basic/source/comp/exprgen.cxx +++ b/basic/source/comp/exprgen.cxx @@ -34,7 +34,7 @@ struct OpTable { } -static const OpTable aOpTable [] = { +const OpTable aOpTable [] = { { EXPON,SbiOpcode::EXP_ }, { MUL, SbiOpcode::MUL_ }, { DIV, SbiOpcode::DIV_ }, diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 6819c3ae588d..9d53c8269113 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -47,7 +47,7 @@ struct SbiStatement { #define Y true #define N false -static const SbiStatement StmntTable [] = { +const SbiStatement StmntTable [] = { { ATTRIBUTE, &SbiParser::Attribute, Y, Y, }, // ATTRIBUTE { CALL, &SbiParser::Call, N, Y, }, // CALL { CLOSE, &SbiParser::Close, N, Y, }, // CLOSE diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index 37c8f9b3a475..bf47a1b2aaa8 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -32,7 +32,7 @@ struct TokenTable { SbiToken t; const char *s; }; } -static const TokenTable aTokTable_Basic [] = { +const TokenTable aTokTable_Basic [] = { { CAT, "&" }, { MUL, "*" }, { PLUS, "+" }, -- cgit