Switch all uses of std::list for signal connections to std::deque

This commit is contained in:
Thomas Goyne 2012-11-28 07:28:18 -08:00
parent df4fffede5
commit eca70285f1
4 changed files with 8 additions and 10 deletions

View File

@ -34,7 +34,7 @@
///
#ifndef AGI_PRE
#include <list>
#include <deque>
#include <map>
#include <cstdint>
@ -103,7 +103,7 @@ public:
class AudioDisplay: public wxWindow {
agi::signal::Connection audio_open_connection;
std::list<agi::signal::Connection> connections;
std::deque<agi::signal::Connection> connections;
agi::Context *context;
/// The audio renderer manager

View File

@ -32,12 +32,10 @@
/// @ingroup scripting
///
#pragma once
#ifndef AGI_PRE
#include <list>
#include <deque>
#include <vector>
#include <wx/dialog.h>
@ -232,7 +230,7 @@ namespace Automation4 {
/// Manager for scripts specified by a subtitle file
class LocalScriptManager : public ScriptManager {
std::list<agi::signal::Connection> slots;
std::deque<agi::signal::Connection> slots;
agi::Context *context;
void OnSubtitlesSave();

View File

@ -33,7 +33,7 @@
///
#ifndef AGI_PRE
#include <list>
#include <deque>
#include <wx/panel.h>
#endif
@ -48,7 +48,7 @@ class wxTextCtrl;
/// @class VideoBox
/// @brief The box containing the video display and associated controls
class VideoBox : public wxPanel {
std::list<agi::signal::Connection> slots;
std::deque<agi::signal::Connection> slots;
agi::Context *context; ///< Project context
wxTextCtrl *VideoPosition; ///< Current frame/time
wxTextCtrl *VideoSubsPos; ///< Time relative to the active subtitle line

View File

@ -34,7 +34,7 @@
#ifndef AGI_PRE
#include <list>
#include <deque>
#include <memory>
#include <wx/glcanvas.h>
@ -66,7 +66,7 @@ namespace agi {
/// @brief DOCME
class VideoDisplay : public wxGLCanvas {
/// Signals the display is connected to
std::list<agi::signal::Connection> slots;
std::deque<agi::signal::Connection> slots;
const agi::OptionValue* autohideTools;