From b86871241b3b9685063adab7f131a9dd3ef5404c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= <1671644+arrufat@users.noreply.github.com> Date: Fri, 19 May 2023 12:02:46 +0900 Subject: [PATCH] Remove unneeded using namespace std (#2799) --- dlib/media/ffmpeg_demuxer.h | 3 --- dlib/media/ffmpeg_muxer.h | 4 ---- 2 files changed, 7 deletions(-) diff --git a/dlib/media/ffmpeg_demuxer.h b/dlib/media/ffmpeg_demuxer.h index 7a55d0f29..ca317fec4 100644 --- a/dlib/media/ffmpeg_demuxer.h +++ b/dlib/media/ffmpeg_demuxer.h @@ -1070,7 +1070,6 @@ namespace dlib Callback&& clb ) { - using namespace std; using namespace details; if (!is_open()) @@ -1233,7 +1232,6 @@ namespace dlib inline bool demuxer::open(const args& a) { - using namespace std; using namespace std::chrono; using namespace details; @@ -1442,7 +1440,6 @@ namespace dlib inline bool demuxer::fill_queue() { - using namespace std; using namespace details; if (!st.frame_queue.empty()) diff --git a/dlib/media/ffmpeg_muxer.h b/dlib/media/ffmpeg_muxer.h index 8d5af3e17..7ce5b6d83 100644 --- a/dlib/media/ffmpeg_muxer.h +++ b/dlib/media/ffmpeg_muxer.h @@ -836,7 +836,6 @@ namespace dlib inline bool encoder::open() { - using namespace std; using namespace details; register_ffmpeg(); @@ -1141,7 +1140,6 @@ namespace dlib inline bool muxer::open(const args& a) { - using namespace std; using namespace std::chrono; using namespace details; @@ -1308,7 +1306,6 @@ namespace dlib inline bool muxer::push(frame f) { - using namespace std; using namespace details; if (!is_open()) @@ -1339,7 +1336,6 @@ namespace dlib > bool muxer::push(const image_type& img) { - using namespace std; using namespace details; return is_open() &&