Skip to content

Commit

Permalink
[Ref] xmp-openmpt: Tiny cleanups.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20362 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 15, 2024
1 parent 2dcb479 commit aae91a6
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions libopenmpt/xmp-openmpt/xmp-openmpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ class xmp_openmpt_settings
{
return;
}
virtual ~xmp_openmpt_settings()
{
return;
}
virtual ~xmp_openmpt_settings() = default;
};

struct self_xmplay_t {
Expand Down Expand Up @@ -167,9 +164,6 @@ struct self_xmplay_t {
mod = 0;
}
}
~self_xmplay_t() {
return;
}
};

static std::string convert_to_native( const std::string & str ) {
Expand Down Expand Up @@ -517,8 +511,8 @@ class xmplay_streambuf : public std::streambuf {
explicit xmplay_streambuf( XMPFILE & file );
private:
int_type underflow() override;
xmplay_streambuf( const xmplay_streambuf & );
xmplay_streambuf & operator = ( const xmplay_streambuf & );
xmplay_streambuf( const xmplay_streambuf & ) = delete;
xmplay_streambuf & operator = ( const xmplay_streambuf & ) = delete;
private:
XMPFILE & file;
static inline constexpr std::size_t put_back = 4096;
Expand Down Expand Up @@ -554,15 +548,12 @@ class xmplay_istream : public std::istream {
private:
xmplay_streambuf buf;
private:
xmplay_istream( const xmplay_istream & );
xmplay_istream & operator = ( const xmplay_istream & );
xmplay_istream( const xmplay_istream & ) = delete;
xmplay_istream & operator = ( const xmplay_istream & ) = delete;
public:
xmplay_istream( XMPFILE & file ) : std::istream(&buf), buf(file) {
return;
}
~xmplay_istream() {
return;
}
}; // class xmplay_istream

// Stream for memory-based files (required for could_open_probability)
Expand Down

0 comments on commit aae91a6

Please sign in to comment.