From 9652f503168e04482addced2ecd275800ac7ad0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano?= Date: Wed, 22 Feb 2023 17:00:34 +0900 Subject: [PATCH] Allow std literals everywhere --- src/cli.cc | 2 -- src/ogg.cc | 2 -- src/opustags.h | 2 ++ src/system.cc | 2 -- t/cli.cc | 2 -- t/opus.cc | 2 -- 6 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/cli.cc b/src/cli.cc index b9ae866..0eaa828 100644 --- a/src/cli.cc +++ b/src/cli.cc @@ -16,8 +16,6 @@ #include #include -using namespace std::literals::string_literals; - static const char help_message[] = PROJECT_NAME " version " PROJECT_VERSION R"raw( diff --git a/src/ogg.cc b/src/ogg.cc index 074317e..c19f226 100644 --- a/src/ogg.cc +++ b/src/ogg.cc @@ -13,8 +13,6 @@ #include #include -using namespace std::literals::string_literals; - bool ot::is_opus_stream(const ogg_page& identification_header) { if (ogg_page_bos(&identification_header) == 0) diff --git a/src/opustags.h b/src/opustags.h index 082c0ab..a04bb9c 100644 --- a/src/opustags.h +++ b/src/opustags.h @@ -53,6 +53,8 @@ #define le32toh(x) OSSwapLittleToHostInt32(x) #endif +using namespace std::literals; + namespace ot { /** diff --git a/src/system.cc b/src/system.cc index 18bb395..7682ffe 100644 --- a/src/system.cc +++ b/src/system.cc @@ -18,8 +18,6 @@ #include #include -using namespace std::string_literals; - void ot::partial_file::open(const char* destination) { final_name = destination; diff --git a/t/cli.cc b/t/cli.cc index 99d9037..2791fe3 100644 --- a/t/cli.cc +++ b/t/cli.cc @@ -3,8 +3,6 @@ #include -using namespace std::literals::string_literals; - static ot::status read_comments(FILE* input, std::list& comments, bool raw) { try { diff --git a/t/opus.cc b/t/opus.cc index f602cb2..3988451 100644 --- a/t/opus.cc +++ b/t/opus.cc @@ -3,8 +3,6 @@ #include -using namespace std::literals::string_literals; - static const char standard_OpusTags[] = "OpusTags" "\x14\x00\x00\x00" "opustags test packet"