summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/avhuff.cpp12
-rw-r--r--src/lib/util/avhuff.h2
-rw-r--r--src/lib/util/aviio.cpp10
-rw-r--r--src/lib/util/aviio.h4
-rw-r--r--src/lib/util/chdcodec.cpp20
-rw-r--r--src/lib/util/chdcodec.h2
-rw-r--r--src/lib/util/corefile.cpp11
-rw-r--r--src/lib/util/corefile.h2
-rw-r--r--src/lib/util/huffman.cpp16
-rw-r--r--src/lib/util/huffman.h4
-rw-r--r--src/lib/util/opresolv.cpp9
-rw-r--r--src/lib/util/opresolv.h2
-rw-r--r--src/lib/util/options.cpp9
-rw-r--r--src/lib/util/options.h4
-rw-r--r--src/lib/util/palette.cpp9
-rw-r--r--src/lib/util/palette.h2
-rw-r--r--src/lib/util/xmlfile.cpp3
-rw-r--r--src/lib/util/xmlfile.h4
18 files changed, 110 insertions, 15 deletions
diff --git a/src/lib/util/avhuff.cpp b/src/lib/util/avhuff.cpp
index 73a41df50d7..50eea9f24dc 100644
--- a/src/lib/util/avhuff.cpp
+++ b/src/lib/util/avhuff.cpp
@@ -679,6 +679,18 @@ uint16_t *avhuff_encoder::deltarle_encoder::rle_and_histo_bitmap(const uint8_t *
//**************************************************************************
/**
+ * @fn avhuff_decoder::avhuff_decoder()
+ *
+ * @brief -------------------------------------------------
+ * avhuff_decoder - constructor
+ * -------------------------------------------------.
+ */
+
+avhuff_decoder::avhuff_decoder()
+{
+}
+
+/**
* @fn void avhuff_decoder::configure(const avhuff_decompress_config &config)
*
* @brief -------------------------------------------------
diff --git a/src/lib/util/avhuff.h b/src/lib/util/avhuff.h
index d14046e1f62..90ef43e977f 100644
--- a/src/lib/util/avhuff.h
+++ b/src/lib/util/avhuff.h
@@ -144,7 +144,7 @@ class avhuff_decoder
{
public:
// construction/destruction
- avhuff_decoder() = default;
+ avhuff_decoder();
// configuration
void configure(const avhuff_decompress_config &config);
diff --git a/src/lib/util/aviio.cpp b/src/lib/util/aviio.cpp
index 067f81fef27..8722017d3e8 100644
--- a/src/lib/util/aviio.cpp
+++ b/src/lib/util/aviio.cpp
@@ -3803,3 +3803,13 @@ const char *avi_file::error_string(error err)
default: return "undocumented error";
}
}
+
+
+avi_file::avi_file()
+{
+}
+
+
+avi_file::~avi_file()
+{
+}
diff --git a/src/lib/util/aviio.h b/src/lib/util/aviio.h
index 8aa36d80b8b..c951f71b22f 100644
--- a/src/lib/util/aviio.h
+++ b/src/lib/util/aviio.h
@@ -111,7 +111,7 @@ public:
static error open(std::string const &filename, ptr &file);
static error create(std::string const &filename, movie_info const &info, ptr &file);
- virtual ~avi_file() = default;
+ virtual ~avi_file();
virtual void printf_chunks() = 0;
static const char *error_string(error err);
@@ -128,7 +128,7 @@ public:
virtual error append_sound_samples(int channel, std::int16_t const *samples, std::uint32_t numsamples, std::uint32_t sampleskip) = 0;
protected:
- avi_file() = default;
+ avi_file();
};
#endif // MAME_LIB_UTIL_AVIIO_H
diff --git a/src/lib/util/chdcodec.cpp b/src/lib/util/chdcodec.cpp
index 3f76af302bd..58f7b4291db 100644
--- a/src/lib/util/chdcodec.cpp
+++ b/src/lib/util/chdcodec.cpp
@@ -124,7 +124,7 @@ class chd_lzma_compressor : public chd_compressor
public:
// construction/destruction
chd_lzma_compressor(chd_file &chd, uint32_t hunkbytes, bool lossy);
- ~chd_lzma_compressor() = default;
+ ~chd_lzma_compressor();
// core functionality
virtual uint32_t compress(const uint8_t *src, uint32_t srclen, uint8_t *dest) override;
@@ -497,6 +497,15 @@ chd_codec::chd_codec(chd_file &chd, uint32_t hunkbytes, bool lossy)
//-------------------------------------------------
+// ~chd_codec - destructor
+//-------------------------------------------------
+
+chd_codec::~chd_codec()
+{
+}
+
+
+//-------------------------------------------------
// configure - configuration
//-------------------------------------------------
@@ -1045,6 +1054,15 @@ chd_lzma_compressor::chd_lzma_compressor(chd_file &chd, uint32_t hunkbytes, bool
//-------------------------------------------------
+// ~chd_lzma_compressor - destructor
+//-------------------------------------------------
+
+chd_lzma_compressor::~chd_lzma_compressor()
+{
+}
+
+
+//-------------------------------------------------
// compress - compress data using the LZMA codec
//-------------------------------------------------
diff --git a/src/lib/util/chdcodec.h b/src/lib/util/chdcodec.h
index 8be99b2e710..e688b41a108 100644
--- a/src/lib/util/chdcodec.h
+++ b/src/lib/util/chdcodec.h
@@ -50,7 +50,7 @@ protected:
public:
// allow public deletion
- virtual ~chd_codec() = default;
+ virtual ~chd_codec();
// accessors
chd_file &chd() const { return m_chd; }
diff --git a/src/lib/util/corefile.cpp b/src/lib/util/corefile.cpp
index d241dac6ed1..2de0d7c378d 100644
--- a/src/lib/util/corefile.cpp
+++ b/src/lib/util/corefile.cpp
@@ -143,7 +143,7 @@ class core_proxy_file : public core_file
{
public:
core_proxy_file(core_file &file) : m_file(file) { }
- virtual ~core_proxy_file() override = default;
+ virtual ~core_proxy_file() override { }
virtual osd_file::error compress(int level) override { return m_file.compress(level); }
virtual int seek(std::int64_t offset, int whence) override { return m_file.seek(offset, whence); }
@@ -1233,6 +1233,15 @@ osd_file::error core_file::load(std::string const &filename, std::vector<uint8_t
return osd_file::error::NONE;
}
+
+/*-------------------------------------------------
+ protected constructor
+-------------------------------------------------*/
+
+core_file::core_file()
+{
+}
+
} // namespace util
diff --git a/src/lib/util/corefile.h b/src/lib/util/corefile.h
index 99496b964e8..d286cb866ac 100644
--- a/src/lib/util/corefile.h
+++ b/src/lib/util/corefile.h
@@ -128,7 +128,7 @@ public:
protected:
- core_file() = default;
+ core_file();
};
diff --git a/src/lib/util/huffman.cpp b/src/lib/util/huffman.cpp
index d8900b45e17..1d531fdd634 100644
--- a/src/lib/util/huffman.cpp
+++ b/src/lib/util/huffman.cpp
@@ -678,6 +678,14 @@ void huffman_context_base::build_lookup_table()
// 8-BIT ENCODER
//**************************************************************************
+//-------------------------------------------------
+// huffman_8bit_encoder - constructor
+//-------------------------------------------------
+
+huffman_8bit_encoder::huffman_8bit_encoder()
+{
+}
+
//-------------------------------------------------
// encode - encode a full buffer
@@ -714,6 +722,14 @@ huffman_error huffman_8bit_encoder::encode(const uint8_t *source, uint32_t sleng
// 8-BIT DECODER
//**************************************************************************
+//-------------------------------------------------
+// huffman_8bit_decoder - constructor
+//-------------------------------------------------
+
+huffman_8bit_decoder::huffman_8bit_decoder()
+{
+}
+
/**
* @fn huffman_error huffman_8bit_decoder::decode(const uint8_t *source, uint32_t slength, uint8_t *dest, uint32_t dlength)
*
diff --git a/src/lib/util/huffman.h b/src/lib/util/huffman.h
index 233146e8e20..0eac393f380 100644
--- a/src/lib/util/huffman.h
+++ b/src/lib/util/huffman.h
@@ -149,7 +149,7 @@ class huffman_8bit_encoder : public huffman_encoder<>
{
public:
// construction/destruction
- huffman_8bit_encoder() = default;
+ huffman_8bit_encoder();
// operations
huffman_error encode(const uint8_t *source, uint32_t slength, uint8_t *dest, uint32_t destlength, uint32_t &complength);
@@ -163,7 +163,7 @@ class huffman_8bit_decoder : public huffman_decoder<>
{
public:
// construction/destruction
- huffman_8bit_decoder() = default;
+ huffman_8bit_decoder();
// operations
huffman_error decode(const uint8_t *source, uint32_t slength, uint8_t *dest, uint32_t destlength);
diff --git a/src/lib/util/opresolv.cpp b/src/lib/util/opresolv.cpp
index 210dde4f224..034f9418426 100644
--- a/src/lib/util/opresolv.cpp
+++ b/src/lib/util/opresolv.cpp
@@ -63,6 +63,15 @@ option_resolution::option_resolution(const option_guide &guide)
// -------------------------------------------------
+// dtor
+// -------------------------------------------------
+
+option_resolution::~option_resolution()
+{
+}
+
+
+// -------------------------------------------------
// lookup_in_specification
// -------------------------------------------------
diff --git a/src/lib/util/opresolv.h b/src/lib/util/opresolv.h
index a102dcd8c83..3781b602393 100644
--- a/src/lib/util/opresolv.h
+++ b/src/lib/util/opresolv.h
@@ -243,7 +243,7 @@ public:
// ctor/dtor
option_resolution(const option_guide &guide);
- ~option_resolution() = default;
+ ~option_resolution();
// sets a specification
void set_specification(const std::string &specification);
diff --git a/src/lib/util/options.cpp b/src/lib/util/options.cpp
index fd0783ccaae..3e5cb001378 100644
--- a/src/lib/util/options.cpp
+++ b/src/lib/util/options.cpp
@@ -423,6 +423,15 @@ const char *core_options::simple_entry::maximum() const noexcept
//**************************************************************************
//-------------------------------------------------
+// core_options - constructor
+//-------------------------------------------------
+
+core_options::core_options()
+{
+}
+
+
+//-------------------------------------------------
// ~core_options - destructor
//-------------------------------------------------
diff --git a/src/lib/util/options.h b/src/lib/util/options.h
index a28720a0373..457ec08dd1d 100644
--- a/src/lib/util/options.h
+++ b/src/lib/util/options.h
@@ -147,7 +147,7 @@ public:
};
// construction/destruction
- core_options() = default;
+ core_options();
core_options(const core_options &) = delete;
core_options(core_options &&) = default;
core_options& operator=(const core_options &) = delete;
@@ -213,7 +213,7 @@ private:
simple_entry(simple_entry &&) = delete;
simple_entry& operator=(const simple_entry &) = delete;
simple_entry& operator=(simple_entry &&) = delete;
- virtual ~simple_entry();
+ ~simple_entry();
// getters
virtual const char *value() const noexcept override;
diff --git a/src/lib/util/palette.cpp b/src/lib/util/palette.cpp
index 47fa06c05bd..59a63b2c8f5 100644
--- a/src/lib/util/palette.cpp
+++ b/src/lib/util/palette.cpp
@@ -256,6 +256,15 @@ palette_t::palette_t(uint32_t numcolors, uint32_t numgroups)
// palette_t - destructor
//-------------------------------------------------
+palette_t::~palette_t()
+{
+}
+
+
+//-------------------------------------------------
+// palette_t - destructor
+//-------------------------------------------------
+
void palette_t::deref()
{
if (--m_refcount == 0)
diff --git a/src/lib/util/palette.h b/src/lib/util/palette.h
index 0407a87c29b..ff2c7bb80c9 100644
--- a/src/lib/util/palette.h
+++ b/src/lib/util/palette.h
@@ -191,7 +191,7 @@ public:
private:
// construction/destruction
palette_t(uint32_t numcolors, uint32_t numgroups = 1);
- ~palette_t() = default;
+ ~palette_t();
// internal helpers
rgb_t adjust_palette_entry(rgb_t entry, float brightness, float contrast, const uint8_t *gamma_map);
diff --git a/src/lib/util/xmlfile.cpp b/src/lib/util/xmlfile.cpp
index 8ba2cec92c3..445c3fbb4f7 100644
--- a/src/lib/util/xmlfile.cpp
+++ b/src/lib/util/xmlfile.cpp
@@ -68,6 +68,9 @@ static void expat_element_end(void *data, const XML_Char *name);
XML FILE OBJECTS
***************************************************************************/
+file::file() { }
+file::~file() { }
+
/*-------------------------------------------------
create - create a new, empty XML file
diff --git a/src/lib/util/xmlfile.h b/src/lib/util/xmlfile.h
index 659ad59ae31..8d09b2b7e1e 100644
--- a/src/lib/util/xmlfile.h
+++ b/src/lib/util/xmlfile.h
@@ -215,7 +215,7 @@ public:
using ptr = std::unique_ptr<file>;
- ~file() = default;
+ ~file();
// create a new, empty XML file
static ptr create();
@@ -231,7 +231,7 @@ public:
private:
- file() = default;
+ file();
};