Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
deleted copy/move constructors and assignments from problematic objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Szymaniak committed Apr 3, 2019
1 parent 5993282 commit 75163f5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gizmo/correlator.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Correlator
unsigned minPointsNo = 0,
float minWordsSim = 0.5);

virtual ~Correlator();
~Correlator();

void connectStatsCallback(StatsCallback callback);

Expand Down Expand Up @@ -84,7 +84,7 @@ class Correlator
StatsCallback m_statsCb;
CorrelationStats m_stats;

float m_windowSize;
float m_windowSize;
double m_minCorrelation;
float m_maxDistanceSqr;
unsigned m_minPointsNo;
Expand Down
6 changes: 5 additions & 1 deletion gizmo/media/audiodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "avout.h"
#include <memory>

class Demux;
class AVOutput;


Expand All @@ -16,6 +15,11 @@ class AudioDec : public Decoder
AudioDec();
virtual ~AudioDec();

AudioDec(const AudioDec&) = delete;
AudioDec(AudioDec&&) = delete;
AudioDec& operator= (const AudioDec&) = delete;
AudioDec& operator= (AudioDec&&) = delete;

virtual void start(const AVStream *stream);
virtual void stop();

Expand Down
5 changes: 5 additions & 0 deletions gizmo/media/demux.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ class Demux
Demux(const std::string &fileName);
~Demux();

Demux(const Demux&) = delete;
Demux(Demux&&) = delete;
Demux& operator= (const Demux&) = delete;
Demux& operator= (Demux&&) = delete;

const StreamsFormat &getStreamsInfo() const;

void connectDec(std::shared_ptr<Decoder> dec, unsigned streamId);
Expand Down
5 changes: 5 additions & 0 deletions gizmo/media/resampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class Resampler : public AVOutput
Resampler();
virtual ~Resampler();

Resampler(const Resampler&) = delete;
Resampler(Resampler&&) = delete;
Resampler& operator= (const Resampler&) = delete;
Resampler& operator= (Resampler&&) = delete;

void connectOutput(
std::shared_ptr<AVOutput> output,
const AudioFormat &format,
Expand Down
5 changes: 5 additions & 0 deletions gizmo/media/speechrec.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class SpeechRecognition : public AVOutput
SpeechRecognition();
virtual ~SpeechRecognition();

SpeechRecognition(const SpeechRecognition&) = delete;
SpeechRecognition(SpeechRecognition&&) = delete;
SpeechRecognition& operator= (const SpeechRecognition&) = delete;
SpeechRecognition& operator= (SpeechRecognition&&) = delete;

virtual void start(const AVStream *stream);
virtual void stop();

Expand Down
7 changes: 5 additions & 2 deletions gizmo/media/subdec.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ extern "C"
#include <libavformat/avformat.h>
}

class Demux;


class SubtitleDec : public Decoder
{
Expand All @@ -28,6 +26,11 @@ class SubtitleDec : public Decoder
SubtitleDec();
virtual ~SubtitleDec();

SubtitleDec(const SubtitleDec&) = delete;
SubtitleDec(SubtitleDec&&) = delete;
SubtitleDec& operator= (const SubtitleDec&) = delete;
SubtitleDec& operator= (SubtitleDec&&) = delete;

virtual void start(const AVStream *stream);
virtual void stop();

Expand Down

0 comments on commit 75163f5

Please sign in to comment.