summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-27 15:34:45 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-27 15:34:45 +0000
commitc6871fe8617b3de03662b7630355059393bf8043 (patch)
treeef4aeaa8a6556d1afe033b962d0e8a7c615afc05 /src/lib
parent334e250896a5dcbb64db96df8e20821ffc75b146 (diff)
Add a load of explicit keywords.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/audio_analysis.h4
-rw-r--r--src/lib/audio_buffers.h2
-rw-r--r--src/lib/audio_content.h2
-rw-r--r--src/lib/audio_delay.h2
-rw-r--r--src/lib/audio_filter.h2
-rw-r--r--src/lib/audio_merger.h2
-rw-r--r--src/lib/audio_point.h2
-rw-r--r--src/lib/cinema.h2
-rw-r--r--src/lib/colour_conversion.h2
-rw-r--r--src/lib/content.h2
-rw-r--r--src/lib/content_part.h3
-rw-r--r--src/lib/content_subtitle.h2
-rw-r--r--src/lib/dcp.h2
-rw-r--r--src/lib/dcp_examiner.h2
-rw-r--r--src/lib/dcpomatic_socket.h2
-rw-r--r--src/lib/dkdm_wrapper.h4
-rw-r--r--src/lib/event_history.h2
-rw-r--r--src/lib/exceptions.h20
-rw-r--r--src/lib/ffmpeg.h2
-rw-r--r--src/lib/ffmpeg_stream.h2
-rw-r--r--src/lib/ffmpeg_subtitle_period.h2
-rw-r--r--src/lib/file_group.h4
-rw-r--r--src/lib/file_log.h2
-rw-r--r--src/lib/film.h2
-rw-r--r--src/lib/font.h4
-rw-r--r--src/lib/image.h4
-rw-r--r--src/lib/isdcf_metadata.h2
-rw-r--r--src/lib/job.h2
-rw-r--r--src/lib/json_server.h2
-rw-r--r--src/lib/log_entry.h2
-rw-r--r--src/lib/magick_image_proxy.h2
-rw-r--r--src/lib/raw_image_proxy.h2
-rw-r--r--src/lib/rgba.h2
-rw-r--r--src/lib/screen.h2
-rw-r--r--src/lib/signaller.h2
-rw-r--r--src/lib/subtitle_content.h2
-rw-r--r--src/lib/subtitle_string.h2
-rw-r--r--src/lib/text_subtitle.h2
-rw-r--r--src/lib/timer.h2
-rw-r--r--src/lib/transcode_job.h2
-rw-r--r--src/lib/types.h2
-rw-r--r--src/lib/upload_job.h2
-rw-r--r--src/lib/upmixer_a.h2
-rw-r--r--src/lib/upmixer_b.h2
-rw-r--r--src/lib/video_content.h2
-rw-r--r--src/lib/video_content_scale.h6
-rw-r--r--src/lib/video_mxf_examiner.h2
47 files changed, 64 insertions, 63 deletions
diff --git a/src/lib/audio_analysis.h b/src/lib/audio_analysis.h
index a8ef4fb2d..6da651c95 100644
--- a/src/lib/audio_analysis.h
+++ b/src/lib/audio_analysis.h
@@ -37,8 +37,8 @@ class Playlist;
class AudioAnalysis : public boost::noncopyable
{
public:
- AudioAnalysis (int c);
- AudioAnalysis (boost::filesystem::path);
+ explicit AudioAnalysis (int c);
+ explicit AudioAnalysis (boost::filesystem::path);
void add_point (int c, AudioPoint const & p);
diff --git a/src/lib/audio_buffers.h b/src/lib/audio_buffers.h
index f4a0c1f1c..64ad4ba95 100644
--- a/src/lib/audio_buffers.h
+++ b/src/lib/audio_buffers.h
@@ -40,7 +40,7 @@ class AudioBuffers
public:
AudioBuffers (int channels, int32_t frames);
AudioBuffers (AudioBuffers const &);
- AudioBuffers (boost::shared_ptr<const AudioBuffers>);
+ explicit AudioBuffers (boost::shared_ptr<const AudioBuffers>);
~AudioBuffers ();
AudioBuffers & operator= (AudioBuffers const &);
diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h
index e582bca20..a1f5ba8a0 100644
--- a/src/lib/audio_content.h
+++ b/src/lib/audio_content.h
@@ -43,7 +43,7 @@ public:
class AudioContent : public ContentPart
{
public:
- AudioContent (Content* parent);
+ explicit AudioContent (Content* parent);
AudioContent (Content* parent, std::vector<boost::shared_ptr<Content> >);
void as_xml (xmlpp::Node *) const;
diff --git a/src/lib/audio_delay.h b/src/lib/audio_delay.h
index 644ca1fb4..22be33478 100644
--- a/src/lib/audio_delay.h
+++ b/src/lib/audio_delay.h
@@ -25,7 +25,7 @@ class AudioBuffers;
class AudioDelay
{
public:
- AudioDelay (int samples);
+ explicit AudioDelay (int samples);
boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers> in);
void flush ();
diff --git a/src/lib/audio_filter.h b/src/lib/audio_filter.h
index b6b75cbb0..fb7b7b92c 100644
--- a/src/lib/audio_filter.h
+++ b/src/lib/audio_filter.h
@@ -32,7 +32,7 @@ struct audio_filter_impulse_input_test;
class AudioFilter
{
public:
- AudioFilter (float transition_bandwidth)
+ explicit AudioFilter (float transition_bandwidth)
: _ir (0)
{
_M = 4 / transition_bandwidth;
diff --git a/src/lib/audio_merger.h b/src/lib/audio_merger.h
index 6c9d87097..dbc0c8691 100644
--- a/src/lib/audio_merger.h
+++ b/src/lib/audio_merger.h
@@ -31,7 +31,7 @@
class AudioMerger
{
public:
- AudioMerger (int frame_rate);
+ explicit AudioMerger (int frame_rate);
std::list<std::pair<boost::shared_ptr<AudioBuffers>, DCPTime> > pull (DCPTime time);
void push (boost::shared_ptr<const AudioBuffers> audio, DCPTime time);
diff --git a/src/lib/audio_point.h b/src/lib/audio_point.h
index cc5e4943d..91f0cb0e9 100644
--- a/src/lib/audio_point.h
+++ b/src/lib/audio_point.h
@@ -37,7 +37,7 @@ public:
};
AudioPoint ();
- AudioPoint (cxml::ConstNodePtr node);
+ explicit AudioPoint (cxml::ConstNodePtr node);
AudioPoint (AudioPoint const &);
AudioPoint& operator= (AudioPoint const &);
diff --git a/src/lib/cinema.h b/src/lib/cinema.h
index 3cb17502b..6a3d89845 100644
--- a/src/lib/cinema.h
+++ b/src/lib/cinema.h
@@ -48,7 +48,7 @@ public:
, _utc_offset_minute (utc_offset_minute)
{}
- Cinema (cxml::ConstNodePtr);
+ explicit Cinema (cxml::ConstNodePtr);
void read_screens (cxml::ConstNodePtr);
diff --git a/src/lib/colour_conversion.h b/src/lib/colour_conversion.h
index 90405f282..73b6ad23c 100644
--- a/src/lib/colour_conversion.h
+++ b/src/lib/colour_conversion.h
@@ -37,7 +37,7 @@ class ColourConversion : public dcp::ColourConversion
{
public:
ColourConversion ();
- ColourConversion (dcp::ColourConversion);
+ explicit ColourConversion (dcp::ColourConversion);
ColourConversion (cxml::NodePtr, int version);
virtual ~ColourConversion () {}
diff --git a/src/lib/content.h b/src/lib/content.h
index 836a3bd77..ea764907a 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -63,7 +63,7 @@ public:
class Content : public boost::enable_shared_from_this<Content>, public Signaller, public boost::noncopyable
{
public:
- Content (boost::shared_ptr<const Film>);
+ explicit Content (boost::shared_ptr<const Film>);
Content (boost::shared_ptr<const Film>, DCPTime);
Content (boost::shared_ptr<const Film>, boost::filesystem::path);
Content (boost::shared_ptr<const Film>, cxml::ConstNodePtr);
diff --git a/src/lib/content_part.h b/src/lib/content_part.h
index d3b9b310d..4f6e9e396 100644
--- a/src/lib/content_part.h
+++ b/src/lib/content_part.h
@@ -1,3 +1,4 @@
+
/*
Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
@@ -31,7 +32,7 @@ class Film;
class ContentPart
{
public:
- ContentPart (Content* parent)
+ explicit ContentPart (Content* parent)
: _parent (parent)
{}
diff --git a/src/lib/content_subtitle.h b/src/lib/content_subtitle.h
index 8751d56cb..f834fe197 100644
--- a/src/lib/content_subtitle.h
+++ b/src/lib/content_subtitle.h
@@ -32,7 +32,7 @@ class Image;
class ContentSubtitle
{
public:
- ContentSubtitle (ContentTime f)
+ explicit ContentSubtitle (ContentTime f)
: _from (f)
{}
diff --git a/src/lib/dcp.h b/src/lib/dcp.h
index e2e83e96e..575bcc803 100644
--- a/src/lib/dcp.h
+++ b/src/lib/dcp.h
@@ -33,7 +33,7 @@ public:
std::list<boost::shared_ptr<dcp::CPL> > cpls () const;
protected:
- DCP (boost::shared_ptr<const DCPContent> content)
+ explicit DCP (boost::shared_ptr<const DCPContent> content)
: _dcp_content (content)
{}
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h
index d9c372c3c..aaeec6d32 100644
--- a/src/lib/dcp_examiner.h
+++ b/src/lib/dcp_examiner.h
@@ -31,7 +31,7 @@ class DCPContent;
class DCPExaminer : public DCP, public VideoExaminer, public AudioExaminer
{
public:
- DCPExaminer (boost::shared_ptr<const DCPContent>);
+ explicit DCPExaminer (boost::shared_ptr<const DCPContent>);
boost::optional<double> video_frame_rate () const {
return _video_frame_rate;
diff --git a/src/lib/dcpomatic_socket.h b/src/lib/dcpomatic_socket.h
index fa5250a1a..6f7c05e22 100644
--- a/src/lib/dcpomatic_socket.h
+++ b/src/lib/dcpomatic_socket.h
@@ -30,7 +30,7 @@
class Socket : public boost::noncopyable
{
public:
- Socket (int timeout = 30);
+ explicit Socket (int timeout = 30);
/** @return Our underlying socket */
boost::asio::ip::tcp::socket& socket () {
diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h
index 0c8b5fbfd..09e9d25c4 100644
--- a/src/lib/dkdm_wrapper.h
+++ b/src/lib/dkdm_wrapper.h
@@ -52,7 +52,7 @@ private:
class DKDM : public DKDMBase
{
public:
- DKDM (dcp::EncryptedKDM k)
+ explicit DKDM (dcp::EncryptedKDM k)
: _dkdm (k)
{}
@@ -70,7 +70,7 @@ private:
class DKDMGroup : public DKDMBase
{
public:
- DKDMGroup (std::string name)
+ explicit DKDMGroup (std::string name)
: _name (name)
{}
diff --git a/src/lib/event_history.h b/src/lib/event_history.h
index f723591fb..e194f6333 100644
--- a/src/lib/event_history.h
+++ b/src/lib/event_history.h
@@ -27,7 +27,7 @@
class EventHistory
{
public:
- EventHistory (int size);
+ explicit EventHistory (int size);
float rate () const;
void event ();
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index 08cbcb1d6..5efb045b7 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -39,7 +39,7 @@ extern "C" {
class DecodeError : public std::runtime_error
{
public:
- DecodeError (std::string s)
+ explicit DecodeError (std::string s)
: std::runtime_error (s)
{}
};
@@ -50,7 +50,7 @@ public:
class EncodeError : public std::runtime_error
{
public:
- EncodeError (std::string s)
+ explicit EncodeError (std::string s)
: std::runtime_error (s)
{}
};
@@ -84,7 +84,7 @@ private:
class JoinError : public std::runtime_error
{
public:
- JoinError (std::string s)
+ explicit JoinError (std::string s)
: std::runtime_error (s)
{}
};
@@ -158,7 +158,7 @@ class MissingSettingError : public SettingError
{
public:
/** @param s Name of setting that was required */
- MissingSettingError (std::string s);
+ explicit MissingSettingError (std::string s);
};
/** @class BadSettingError
@@ -181,7 +181,7 @@ public:
class NetworkError : public std::runtime_error
{
public:
- NetworkError (std::string s)
+ explicit NetworkError (std::string s)
: std::runtime_error (s)
{}
};
@@ -192,7 +192,7 @@ public:
class KDMError : public std::runtime_error
{
public:
- KDMError (std::string s)
+ explicit KDMError (std::string s)
: std::runtime_error (s)
{}
};
@@ -218,7 +218,7 @@ public:
class DCPError : public std::runtime_error
{
public:
- DCPError (std::string s)
+ explicit DCPError (std::string s)
: std::runtime_error (s)
{}
};
@@ -227,7 +227,7 @@ class InvalidSignerError : public std::runtime_error
{
public:
InvalidSignerError ();
- InvalidSignerError (std::string reason);
+ explicit InvalidSignerError (std::string reason);
};
class ProgrammingError : public std::runtime_error
@@ -239,7 +239,7 @@ public:
class TextEncodingError : public std::runtime_error
{
public:
- TextEncodingError (std::string s)
+ explicit TextEncodingError (std::string s)
: std::runtime_error (s)
{}
};
@@ -247,7 +247,7 @@ public:
class OldFormatError : public std::runtime_error
{
public:
- OldFormatError (std::string s)
+ explicit OldFormatError (std::string s)
: std::runtime_error (s)
{}
};
diff --git a/src/lib/ffmpeg.h b/src/lib/ffmpeg.h
index 95a8bf5d9..dab67ead9 100644
--- a/src/lib/ffmpeg.h
+++ b/src/lib/ffmpeg.h
@@ -40,7 +40,7 @@ class Log;
class FFmpeg
{
public:
- FFmpeg (boost::shared_ptr<const FFmpegContent>);
+ explicit FFmpeg (boost::shared_ptr<const FFmpegContent>);
virtual ~FFmpeg ();
boost::shared_ptr<const FFmpegContent> ffmpeg_content () const {
diff --git a/src/lib/ffmpeg_stream.h b/src/lib/ffmpeg_stream.h
index ec27a30f0..84b2a8853 100644
--- a/src/lib/ffmpeg_stream.h
+++ b/src/lib/ffmpeg_stream.h
@@ -35,7 +35,7 @@ public:
, _id (i)
{}
- FFmpegStream (cxml::ConstNodePtr);
+ explicit FFmpegStream (cxml::ConstNodePtr);
void as_xml (xmlpp::Node *) const;
diff --git a/src/lib/ffmpeg_subtitle_period.h b/src/lib/ffmpeg_subtitle_period.h
index 1c2c05975..42c7bf763 100644
--- a/src/lib/ffmpeg_subtitle_period.h
+++ b/src/lib/ffmpeg_subtitle_period.h
@@ -24,7 +24,7 @@
class FFmpegSubtitlePeriod
{
public:
- FFmpegSubtitlePeriod (ContentTime f)
+ explicit FFmpegSubtitlePeriod (ContentTime f)
: from (f)
{}
diff --git a/src/lib/file_group.h b/src/lib/file_group.h
index 865e6bd22..800d9a059 100644
--- a/src/lib/file_group.h
+++ b/src/lib/file_group.h
@@ -35,8 +35,8 @@ class FileGroup
{
public:
FileGroup ();
- FileGroup (boost::filesystem::path);
- FileGroup (std::vector<boost::filesystem::path> const &);
+ explicit FileGroup (boost::filesystem::path);
+ explicit FileGroup (std::vector<boost::filesystem::path> const &);
~FileGroup ();
void set_paths (std::vector<boost::filesystem::path> const &);
diff --git a/src/lib/file_log.h b/src/lib/file_log.h
index bd6a7bf6a..6904bfd77 100644
--- a/src/lib/file_log.h
+++ b/src/lib/file_log.h
@@ -23,7 +23,7 @@
class FileLog : public Log
{
public:
- FileLog (boost::filesystem::path file);
+ explicit FileLog (boost::filesystem::path file);
std::string head_and_tail (int amount = 1024) const;
diff --git a/src/lib/film.h b/src/lib/film.h
index 355a41da5..20a1e2ca6 100644
--- a/src/lib/film.h
+++ b/src/lib/film.h
@@ -67,7 +67,7 @@ struct isdcf_name_test;
class Film : public boost::enable_shared_from_this<Film>, public Signaller, public boost::noncopyable
{
public:
- Film (boost::optional<boost::filesystem::path> dir);
+ explicit Film (boost::optional<boost::filesystem::path> dir);
~Film ();
boost::filesystem::path info_file (DCPTimePeriod p) const;
diff --git a/src/lib/font.h b/src/lib/font.h
index bbf88b34a..cb18e4798 100644
--- a/src/lib/font.h
+++ b/src/lib/font.h
@@ -31,10 +31,10 @@
class Font
{
public:
- Font (std::string id)
+ explicit Font (std::string id)
: _id (id) {}
- Font (cxml::NodePtr node);
+ explicit Font (cxml::NodePtr node);
void as_xml (xmlpp::Node* node);
diff --git a/src/lib/image.h b/src/lib/image.h
index 8de0a2c69..f71a47b0c 100644
--- a/src/lib/image.h
+++ b/src/lib/image.h
@@ -41,8 +41,8 @@ class Image
{
public:
Image (AVPixelFormat p, dcp::Size s, bool aligned, int extra_pixels = 0);
- Image (AVFrame *);
- Image (Image const &);
+ explicit Image (AVFrame *);
+ explicit Image (Image const &);
Image (boost::shared_ptr<const Image>, bool);
Image& operator= (Image const &);
~Image ();
diff --git a/src/lib/isdcf_metadata.h b/src/lib/isdcf_metadata.h
index 5d0e865fb..49d204cf4 100644
--- a/src/lib/isdcf_metadata.h
+++ b/src/lib/isdcf_metadata.h
@@ -39,7 +39,7 @@ public:
, two_d_version_of_three_d (false)
{}
- ISDCFMetadata (cxml::ConstNodePtr);
+ explicit ISDCFMetadata (cxml::ConstNodePtr);
void as_xml (xmlpp::Node *) const;
void read_old_metadata (std::string, std::string);
diff --git a/src/lib/job.h b/src/lib/job.h
index 185273e2d..e5552e49e 100644
--- a/src/lib/job.h
+++ b/src/lib/job.h
@@ -40,7 +40,7 @@ class Film;
class Job : public boost::enable_shared_from_this<Job>, public Signaller, public boost::noncopyable
{
public:
- Job (boost::shared_ptr<const Film> film);
+ explicit Job (boost::shared_ptr<const Film> film);
virtual ~Job ();
/** @return user-readable name of this job */
diff --git a/src/lib/json_server.h b/src/lib/json_server.h
index 996b9bf79..f36e621f3 100644
--- a/src/lib/json_server.h
+++ b/src/lib/json_server.h
@@ -23,7 +23,7 @@
class JSONServer
{
public:
- JSONServer (int port);
+ explicit JSONServer (int port);
private:
void run (int port);
diff --git a/src/lib/log_entry.h b/src/lib/log_entry.h
index ba358f5a3..3d6a9f371 100644
--- a/src/lib/log_entry.h
+++ b/src/lib/log_entry.h
@@ -36,7 +36,7 @@ public:
static const int TYPE_TIMING;
static const int TYPE_DEBUG_EMAIL;
- LogEntry (int type);
+ explicit LogEntry (int type);
virtual ~LogEntry () {}
virtual std::string message () const = 0;
diff --git a/src/lib/magick_image_proxy.h b/src/lib/magick_image_proxy.h
index 1db45d73b..32d2f7efb 100644
--- a/src/lib/magick_image_proxy.h
+++ b/src/lib/magick_image_proxy.h
@@ -26,7 +26,7 @@
class MagickImageProxy : public ImageProxy
{
public:
- MagickImageProxy (boost::filesystem::path);
+ explicit MagickImageProxy (boost::filesystem::path);
MagickImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
boost::shared_ptr<Image> image (
diff --git a/src/lib/raw_image_proxy.h b/src/lib/raw_image_proxy.h
index 2b64cbd9b..9f8424eb3 100644
--- a/src/lib/raw_image_proxy.h
+++ b/src/lib/raw_image_proxy.h
@@ -26,7 +26,7 @@
class RawImageProxy : public ImageProxy
{
public:
- RawImageProxy (boost::shared_ptr<Image>);
+ explicit RawImageProxy (boost::shared_ptr<Image>);
RawImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
boost::shared_ptr<Image> image (
diff --git a/src/lib/rgba.h b/src/lib/rgba.h
index b6f0cc1f1..c9521f311 100644
--- a/src/lib/rgba.h
+++ b/src/lib/rgba.h
@@ -45,7 +45,7 @@ public:
, a (a_)
{}
- RGBA (cxml::ConstNodePtr node);
+ explicit RGBA (cxml::ConstNodePtr node);
void as_xml (xmlpp::Node* parent) const;
diff --git a/src/lib/screen.h b/src/lib/screen.h
index cea5fe29c..5e8f1f975 100644
--- a/src/lib/screen.h
+++ b/src/lib/screen.h
@@ -40,7 +40,7 @@ public:
, trusted_devices (td)
{}
- Screen (cxml::ConstNodePtr);
+ explicit Screen (cxml::ConstNodePtr);
void as_xml (xmlpp::Element *) const;
diff --git a/src/lib/signaller.h b/src/lib/signaller.h
index a6c74c954..b67a63917 100644
--- a/src/lib/signaller.h
+++ b/src/lib/signaller.h
@@ -71,7 +71,7 @@ template <class T>
class Wrapper : public WrapperBase
{
public:
- Wrapper (T signal)
+ explicit Wrapper (T signal)
: _signal (signal)
{
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h
index 58dc51510..b64e4787b 100644
--- a/src/lib/subtitle_content.h
+++ b/src/lib/subtitle_content.h
@@ -57,7 +57,7 @@ public:
class SubtitleContent : public ContentPart
{
public:
- SubtitleContent (Content* parent);
+ explicit SubtitleContent (Content* parent);
SubtitleContent (Content* parent, std::vector<boost::shared_ptr<Content> >);
void as_xml (xmlpp::Node *) const;
diff --git a/src/lib/subtitle_string.h b/src/lib/subtitle_string.h
index c1b0b14a8..81ebc2744 100644
--- a/src/lib/subtitle_string.h
+++ b/src/lib/subtitle_string.h
@@ -30,7 +30,7 @@
class SubtitleString : public dcp::SubtitleString
{
public:
- SubtitleString (dcp::SubtitleString dcp_)
+ explicit SubtitleString (dcp::SubtitleString dcp_)
: dcp::SubtitleString (dcp_)
, outline_width (2)
{}
diff --git a/src/lib/text_subtitle.h b/src/lib/text_subtitle.h
index 94adb5cc5..c72486ca0 100644
--- a/src/lib/text_subtitle.h
+++ b/src/lib/text_subtitle.h
@@ -35,7 +35,7 @@ class text_subtitle_parse_test;
class TextSubtitle
{
public:
- TextSubtitle (boost::shared_ptr<const TextSubtitleContent>);
+ explicit TextSubtitle (boost::shared_ptr<const TextSubtitleContent>);
boost::optional<ContentTime> first () const;
ContentTime length () const;
diff --git a/src/lib/timer.h b/src/lib/timer.h
index a7d4c8d01..9ea95c720 100644
--- a/src/lib/timer.h
+++ b/src/lib/timer.h
@@ -37,7 +37,7 @@
class PeriodTimer
{
public:
- PeriodTimer (std::string n);
+ explicit PeriodTimer (std::string n);
~PeriodTimer ();
private:
diff --git a/src/lib/transcode_job.h b/src/lib/transcode_job.h
index 47611525a..9dd9e3684 100644
--- a/src/lib/transcode_job.h
+++ b/src/lib/transcode_job.h
@@ -33,7 +33,7 @@ class Encoder;
class TranscodeJob : public Job
{
public:
- TranscodeJob (boost::shared_ptr<const Film> film);
+ explicit TranscodeJob (boost::shared_ptr<const Film> film);
std::string name () const;
std::string json_name () const;
diff --git a/src/lib/types.h b/src/lib/types.h
index 8f99b8881..ed3746f45 100644
--- a/src/lib/types.h
+++ b/src/lib/types.h
@@ -134,7 +134,7 @@ struct Crop
{
Crop () : left (0), right (0), top (0), bottom (0) {}
Crop (int l, int r, int t, int b) : left (l), right (r), top (t), bottom (b) {}
- Crop (boost::shared_ptr<cxml::Node>);
+ explicit Crop (boost::shared_ptr<cxml::Node>);
/** Number of pixels to remove from the left-hand side */
int left;
diff --git a/src/lib/upload_job.h b/src/lib/upload_job.h
index 4d3768515..407094ab8 100644
--- a/src/lib/upload_job.h
+++ b/src/lib/upload_job.h
@@ -27,7 +27,7 @@
class UploadJob : public Job
{
public:
- UploadJob (boost::shared_ptr<const Film>);
+ explicit UploadJob (boost::shared_ptr<const Film>);
std::string name () const;
std::string json_name () const;
diff --git a/src/lib/upmixer_a.h b/src/lib/upmixer_a.h
index de02a8d95..fe6a373ca 100644
--- a/src/lib/upmixer_a.h
+++ b/src/lib/upmixer_a.h
@@ -31,7 +31,7 @@
class UpmixerA : public AudioProcessor
{
public:
- UpmixerA (int sampling_rate);
+ explicit UpmixerA (int sampling_rate);
std::string name () const;
std::string id () const;
diff --git a/src/lib/upmixer_b.h b/src/lib/upmixer_b.h
index 0c724b36c..47b4fadef 100644
--- a/src/lib/upmixer_b.h
+++ b/src/lib/upmixer_b.h
@@ -29,7 +29,7 @@
class UpmixerB : public AudioProcessor
{
public:
- UpmixerB (int sampling_rate);
+ explicit UpmixerB (int sampling_rate);
std::string name () const;
std::string id () const;
diff --git a/src/lib/video_content.h b/src/lib/video_content.h
index 84b3d2268..774210c13 100644
--- a/src/lib/video_content.h
+++ b/src/lib/video_content.h
@@ -51,7 +51,7 @@ public:
class VideoContent : public ContentPart, public boost::enable_shared_from_this<VideoContent>
{
public:
- VideoContent (Content* parent);
+ explicit VideoContent (Content* parent);
VideoContent (Content* parent, std::vector<boost::shared_ptr<Content> >);
void as_xml (xmlpp::Node *) const;
diff --git a/src/lib/video_content_scale.h b/src/lib/video_content_scale.h
index 1054234bc..2f161b1a7 100644
--- a/src/lib/video_content_scale.h
+++ b/src/lib/video_content_scale.h
@@ -40,9 +40,9 @@ class VideoContentScale
{
public:
VideoContentScale ();
- VideoContentScale (Ratio const *);
- VideoContentScale (bool);
- VideoContentScale (boost::shared_ptr<cxml::Node>);
+ explicit VideoContentScale (Ratio const *);
+ explicit VideoContentScale (bool);
+ explicit VideoContentScale (boost::shared_ptr<cxml::Node>);
dcp::Size size (boost::shared_ptr<const VideoContent>, dcp::Size display_container, dcp::Size film_container) const;
std::string id () const;
diff --git a/src/lib/video_mxf_examiner.h b/src/lib/video_mxf_examiner.h
index 43e82da4d..3a0189a2f 100644
--- a/src/lib/video_mxf_examiner.h
+++ b/src/lib/video_mxf_examiner.h
@@ -29,7 +29,7 @@ namespace dcp {
class VideoMXFExaminer : public VideoExaminer
{
public:
- VideoMXFExaminer (boost::shared_ptr<const VideoMXFContent>);
+ explicit VideoMXFExaminer (boost::shared_ptr<const VideoMXFContent>);
boost::optional<double> video_frame_rate () const;
dcp::Size video_size () const;