From 4ae9c16389f0c87d2700f0944120186c64e7bb25 Mon Sep 17 00:00:00 2001 From: Teus Benschop Date: Thu, 28 Dec 2023 17:45:09 +0100 Subject: [PATCH] Specify namespace pugi --- bb/settings.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bb/settings.cpp b/bb/settings.cpp index 39a64aee8..d6bf12ae1 100644 --- a/bb/settings.cpp +++ b/bb/settings.cpp @@ -58,7 +58,6 @@ #endif #pragma GCC diagnostic pop using namespace std; -using namespace pugi; string bible_settings_url () @@ -203,12 +202,12 @@ string bible_settings (void * webserver_request) // Available books. - xml_document book_document {}; + pugi::xml_document book_document {}; vector book_ids = filter_passage_get_ordered_books (bible); for (const auto book: book_ids) { string book_name = database::books::get_english_from_id (static_cast(book)); book_name = translate(book_name); - xml_node a_or_span_node; + pugi::xml_node a_or_span_node; if (manager_level) { a_or_span_node = book_document.append_child("a"); string href = filter_url_build_http_query ("book", "bible", bible); @@ -218,11 +217,11 @@ string bible_settings (void * webserver_request) a_or_span_node = book_document.append_child("span"); } a_or_span_node.text().set(book_name.c_str()); - xml_node space_node = book_document.append_child("span"); + pugi::xml_node space_node = book_document.append_child("span"); space_node.text().set(" "); } stringstream bookblock2 {}; - book_document.print (bookblock2, "", format_raw); + book_document.print (bookblock2, "", pugi::format_raw); view.set_variable ("bookblock", bookblock2.str()); view.set_variable ("book_count", filter::strings::convert_to_string (static_cast(book_ids.size())));