1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 09:31:15 +02:00

use override

This commit is contained in:
Paul Licameli
2017-10-01 13:28:04 -04:00
parent 9612e3d971
commit 31231a54d2
33 changed files with 100 additions and 97 deletions

View File

@@ -65,27 +65,27 @@ public:
{
}
virtual bool HasGroup(const wxString & strName) const
virtual bool HasGroup(const wxString & strName) const override
{
return wxFileConfig::HasGroup(NormalizeName(strName));
}
virtual bool HasEntry(const wxString& strName) const
virtual bool HasEntry(const wxString& strName) const override
{
return wxFileConfig::HasEntry(NormalizeName(strName));
}
virtual bool DoReadString(const wxString & key, wxString *pStr) const
virtual bool DoReadString(const wxString & key, wxString *pStr) const override
{
return wxFileConfig::DoReadString(NormalizeName(key), pStr);
}
virtual bool DoReadLong(const wxString & key, long *pl) const
virtual bool DoReadLong(const wxString & key, long *pl) const override
{
return wxFileConfig::DoReadLong(NormalizeName(key), pl);
}
virtual bool DoReadDouble(const wxString & key, double *pd) const
virtual bool DoReadDouble(const wxString & key, double *pd) const override
{
wxString str;
if (Read(key, &str))
@@ -102,17 +102,17 @@ public:
return false;
}
virtual bool DoWriteString(const wxString & key, const wxString & szValue)
virtual bool DoWriteString(const wxString & key, const wxString & szValue) override
{
return wxFileConfig::DoWriteString(NormalizeName(key), szValue);
}
virtual bool DoWriteLong(const wxString & key, long lValue)
virtual bool DoWriteLong(const wxString & key, long lValue) override
{
return wxFileConfig::DoWriteLong(NormalizeName(key), lValue);
}
virtual bool DoWriteDouble(const wxString & key, double value)
virtual bool DoWriteDouble(const wxString & key, double value) override
{
return DoWriteString(key, wxString::Format(wxT("%.12f"), value));
}