From b355aef99782eff46b47603eb4095223a9e6fac3 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 19 Sep 2022 13:31:04 +0000 Subject: [PATCH] Add static keyword Mark `xlnt::detail::read_defined_names()` as static as it is not supposed to be used outside this translation unit. --- source/detail/serialization/xlsx_consumer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/detail/serialization/xlsx_consumer.cpp b/source/detail/serialization/xlsx_consumer.cpp index e7dce8d1..9d97cdaf 100644 --- a/source/detail/serialization/xlsx_consumer.cpp +++ b/source/detail/serialization/xlsx_consumer.cpp @@ -449,7 +449,7 @@ void xlsx_consumer::read_worksheet(const std::string &rel_id) } } -void read_defined_names(worksheet ws, std::vector defined_names) +static void read_defined_names(worksheet ws, std::vector defined_names) { for (auto &name : defined_names) {