mirror of https://github.com/stella-emu/stella.git
More fixes from cppcheck.
This commit is contained in:
parent
6093bf8375
commit
dc4fc5c8d2
|
@ -84,7 +84,7 @@ class LinkedObjectPool
|
|||
iter it = myCurrent;
|
||||
uInt32 idx = 1;
|
||||
|
||||
while(it-- != myList.begin()) idx++;
|
||||
while(it-- != myList.begin()) ++idx;
|
||||
return idx;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ class SettingsMACOSX : public Settings
|
|||
/**
|
||||
Create a new UNIX settings object
|
||||
*/
|
||||
SettingsMACOSX(OSystem& osystem);
|
||||
explicit SettingsMACOSX(OSystem& osystem);
|
||||
virtual ~SettingsMACOSX() = default;
|
||||
|
||||
public:
|
||||
|
|
|
@ -55,7 +55,7 @@ class FilesystemNodeWINDOWS : public AbstractFSNode
|
|||
*
|
||||
* @param path String with the path the new node should point to.
|
||||
*/
|
||||
FilesystemNodeWINDOWS(const string& path);
|
||||
explicit FilesystemNodeWINDOWS(const string& path);
|
||||
|
||||
bool exists() const override;
|
||||
const string& getName() const override { return _displayName; }
|
||||
|
|
|
@ -28,7 +28,7 @@ class SettingsWINDOWS : public Settings
|
|||
/**
|
||||
Create a new UNIX settings object
|
||||
*/
|
||||
SettingsWINDOWS(OSystem& osystem);
|
||||
explicit SettingsWINDOWS(OSystem& osystem);
|
||||
virtual ~SettingsWINDOWS() = default;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue