A few more constexpr additions, and removal of redundant comments.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3301 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2016-04-02 22:52:29 +00:00
parent abf4a4a44c
commit f431e3e3a5
22 changed files with 1 additions and 128 deletions

View File

@ -44,10 +44,6 @@ class FrameBufferSDL2 : public FrameBuffer
Creates a new SDL2 framebuffer Creates a new SDL2 framebuffer
*/ */
FrameBufferSDL2(OSystem& osystem); FrameBufferSDL2(OSystem& osystem);
/**
Destructor
*/
virtual ~FrameBufferSDL2(); virtual ~FrameBufferSDL2();
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////

View File

@ -44,10 +44,6 @@ class SoundNull : public Sound
{ {
myOSystem->logMessage("Sound disabled.\n", 1); myOSystem->logMessage("Sound disabled.\n", 1);
} }
/**
Destructor
*/
virtual ~SoundNull() = default; virtual ~SoundNull() = default;
public: public:

View File

@ -1,38 +0,0 @@
/* XPM */
static const char * stella_icon[] = {
"32 32 3 1",
" c None",
". c #000000",
"+ c #FFFFFF",
" ",
" ",
" ",
" ",
" .............. ",
" .............. ",
" ..++..++..++.. ",
" ..++..++..++.. ",
" ..++..++..++.. ",
" ..++..++..++.. ",
" ..++..++..++.. ",
" ..++..++..++.. ",
" ..++..++..++.. ",
" ..++..++..++.. ",
" ....++..++..++.... ",
" ....++..++..++.... ",
" ....++++..++..++++.... ",
" ....++++..++..++++.... ",
" ..++++....++....++++.. ",
" ..++++....++....++++.. ",
" ......++......++......++...... ",
" ......++......++......++...... ",
" ..++++++.. ..++.. ..++++++.. ",
" ..++++++.. ..++.. ..++++++.. ",
" ..++++.... ..++.. ....++++.. ",
" ..++++.... ..++.. ....++++.. ",
" ........ ...... ........ ",
" ........ ...... ........ ",
" ",
" ",
" ",
" "};

View File

@ -46,10 +46,6 @@ class Cartridge0840 : public Cartridge
@param settings A reference to the various settings (read-only) @param settings A reference to the various settings (read-only)
*/ */
Cartridge0840(const uInt8* image, uInt32 size, const Settings& settings); Cartridge0840(const uInt8* image, uInt32 size, const Settings& settings);
/**
Destructor
*/
virtual ~Cartridge0840() = default; virtual ~Cartridge0840() = default;
public: public:

View File

@ -27,7 +27,7 @@
#define CHETIRY_TUNES_SIZE 7 * 4096 #define CHETIRY_TUNES_SIZE 7 * 4096
static const uInt8 CartCTYTunes[CHETIRY_TUNES_SIZE] = { static constexpr uInt8 CartCTYTunes[CHETIRY_TUNES_SIZE] = {
/////////////////////////// ///////////////////////////
// Tune 1 // Tune 1
/////////////////////////// ///////////////////////////

View File

@ -71,10 +71,6 @@ class Console : public Serializable
*/ */
Console(OSystem& osystem, unique_ptr<Cartridge>& cart, Console(OSystem& osystem, unique_ptr<Cartridge>& cart,
const Properties& props); const Properties& props);
/**
Destructor
*/
virtual ~Console(); virtual ~Console();
public: public:

View File

@ -35,14 +35,7 @@ class System;
class Device : public Serializable class Device : public Serializable
{ {
public: public:
/**
Create a new device
*/
Device() : mySystem(nullptr) { } Device() : mySystem(nullptr) { }
/**
Destructor
*/
virtual ~Device() = default; virtual ~Device() = default;
public: public:

View File

@ -285,10 +285,6 @@ class AbstractFSNode
// AbstractFSNode(AbstractFSNode&&) = default; // AbstractFSNode(AbstractFSNode&&) = default;
AbstractFSNode& operator=(const AbstractFSNode&) = default; AbstractFSNode& operator=(const AbstractFSNode&) = default;
// AbstractFSNode& operator=(AbstractFSNode&&) = default; // AbstractFSNode& operator=(AbstractFSNode&&) = default;
/**
* Destructor.
*/
virtual ~AbstractFSNode() { } virtual ~AbstractFSNode() { }
/* /*

View File

@ -51,10 +51,6 @@ class KidVid : public Controller
*/ */
KidVid(Jack jack, const Event& event, const System& system, KidVid(Jack jack, const Event& event, const System& system,
const string& md5sum); const string& md5sum);
/**
Destructor
*/
virtual ~KidVid(); virtual ~KidVid();
public: public:

View File

@ -43,10 +43,6 @@ class MT24LC256
@param system The system using the controller of this device @param system The system using the controller of this device
*/ */
MT24LC256(const string& filename, const System& system); MT24LC256(const string& filename, const System& system);
/**
Destructor
*/
~MT24LC256(); ~MT24LC256();
public: public:

View File

@ -36,14 +36,7 @@ class System;
class NullDevice : public Device class NullDevice : public Device
{ {
public: public:
/**
Create a new null device
*/
NullDevice() = default; NullDevice() = default;
/**
Destructor
*/
virtual ~NullDevice() = default; virtual ~NullDevice() = default;
public: public:

View File

@ -63,14 +63,7 @@ class OSystem
friend class VideoDialog; friend class VideoDialog;
public: public:
/**
Create a new OSystem abstract class
*/
OSystem(); OSystem();
/**
Destructor
*/
virtual ~OSystem(); virtual ~OSystem();
/** /**

View File

@ -38,10 +38,6 @@ class CommandMenu : public DialogContainer
Create a new menu stack Create a new menu stack
*/ */
CommandMenu(OSystem& osystem); CommandMenu(OSystem& osystem);
/**
Destructor
*/
virtual ~CommandMenu() = default; virtual ~CommandMenu() = default;
private: private:

View File

@ -49,10 +49,6 @@ class DialogContainer
Create a new DialogContainer stack Create a new DialogContainer stack
*/ */
DialogContainer(OSystem& osystem); DialogContainer(OSystem& osystem);
/**
Destructor
*/
virtual ~DialogContainer(); virtual ~DialogContainer();
public: public:

View File

@ -40,10 +40,6 @@ class Launcher : public DialogContainer
Create a new menu stack Create a new menu stack
*/ */
Launcher(OSystem& osystem); Launcher(OSystem& osystem);
/**
Destructor
*/
virtual ~Launcher() = default; virtual ~Launcher() = default;
/** /**

View File

@ -37,10 +37,6 @@ class Menu : public DialogContainer
Create a new menu stack Create a new menu stack
*/ */
Menu(OSystem& osystem); Menu(OSystem& osystem);
/**
Destructor
*/
virtual ~Menu() = default; virtual ~Menu() = default;
private: private:

View File

@ -35,10 +35,6 @@ class OSystemMACOSX : public OSystem
Create a new MACOSX-specific operating system object Create a new MACOSX-specific operating system object
*/ */
OSystemMACOSX(); OSystemMACOSX();
/**
Destructor
*/
virtual ~OSystemMACOSX() = default; virtual ~OSystemMACOSX() = default;
/** /**

View File

@ -37,10 +37,6 @@ class SettingsMACOSX : public Settings
Create a new UNIX settings object Create a new UNIX settings object
*/ */
SettingsMACOSX(OSystem& osystem); SettingsMACOSX(OSystem& osystem);
/**
Destructor
*/
virtual ~SettingsMACOSX() = default; virtual ~SettingsMACOSX() = default;
public: public:

View File

@ -35,10 +35,6 @@ class OSystemUNIX : public OSystem
Create a new UNIX-specific operating system object Create a new UNIX-specific operating system object
*/ */
OSystemUNIX(); OSystemUNIX();
/**
Destructor
*/
virtual ~OSystemUNIX() = default; virtual ~OSystemUNIX() = default;
private: private:

View File

@ -37,10 +37,6 @@ class SettingsUNIX : public Settings
Create a new UNIX settings object Create a new UNIX settings object
*/ */
SettingsUNIX(OSystem& osystem); SettingsUNIX(OSystem& osystem);
/**
Destructor
*/
virtual ~SettingsUNIX() = default; virtual ~SettingsUNIX() = default;
private: private:

View File

@ -35,10 +35,6 @@ class OSystemWINDOWS : public OSystem
Create a new WINDOWS operating system object Create a new WINDOWS operating system object
*/ */
OSystemWINDOWS(); OSystemWINDOWS();
/**
Destructor
*/
virtual ~OSystemWINDOWS() = default; virtual ~OSystemWINDOWS() = default;
public: public:

View File

@ -31,10 +31,6 @@ class SettingsWINDOWS : public Settings
Create a new UNIX settings object Create a new UNIX settings object
*/ */
SettingsWINDOWS(OSystem& osystem); SettingsWINDOWS(OSystem& osystem);
/**
Destructor
*/
virtual ~SettingsWINDOWS() = default; virtual ~SettingsWINDOWS() = default;
private: private: