Skip to content

Commit bb7b2d5

Browse files
committed
Remove redundant 'static' from objects that already have internal linkage
1 parent 1876660 commit bb7b2d5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/report_generator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ auto utc_timestamp() -> std::tm const & {
4444
}
4545

4646
// global data - would like to do something about that.
47-
static std::string const build_timestamp{format_time("Revised %Y-%m-%d at %H:%M:%S UTC\n", utc_timestamp())};
47+
std::string const build_timestamp{format_time("Revised %Y-%m-%d at %H:%M:%S UTC\n", utc_timestamp())};
4848

49-
static std::string const maintainer_email{"[email protected]"};
49+
std::string const maintainer_email{"[email protected]"};
5050

51-
static std::string const maintainer_name{"Jonathan Wakely"};
51+
std::string const maintainer_name{"Jonathan Wakely"};
5252

53-
static std::string const is14882_docno{"ISO/IEC IS 14882:2024(E)"};
53+
std::string const is14882_docno{"ISO/IEC IS 14882:2024(E)"};
5454

5555
struct order_by_first_tag {
5656
bool operator()(lwg::issue const & x, lwg::issue const & y) const noexcept {

src/status.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include <algorithm>
1111

1212
namespace {
13-
static constexpr char const * LWG_ACTIVE {"lwg-active.html" };
14-
static constexpr char const * LWG_CLOSED {"lwg-closed.html" };
15-
static constexpr char const * LWG_DEFECTS{"lwg-defects.html"};
13+
constexpr char const * LWG_ACTIVE {"lwg-active.html" };
14+
constexpr char const * LWG_CLOSED {"lwg-closed.html" };
15+
constexpr char const * LWG_DEFECTS{"lwg-defects.html"};
1616
}
1717

1818
auto lwg::filename_for_status(std::string_view stat) -> std::string_view {

0 commit comments

Comments
 (0)