1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 07:10:06 +02:00

Clean up a few warnings

This commit is contained in:
Leland Lucius 2015-04-26 16:46:14 -05:00
parent 4f4acffad1
commit afe47be9e1
3 changed files with 5 additions and 5 deletions

View File

@ -655,7 +655,7 @@ bool AutoSaveFile::Decode(const wxString & fileName)
// "</project>" somewhere.
const int bufsize = 16;
char buf[bufsize + 1];
if (file.SeekEnd(-bufsize) != wxInvalidOffset)
if (file.SeekEnd(-bufsize))
{
if (file.Read(buf, bufsize) == bufsize)
{
@ -663,7 +663,7 @@ bool AutoSaveFile::Decode(const wxString & fileName)
if (strstr(buf, "</project>") == 0)
{
// End of file does not contain closing </project> tag, so add it
if (file.Seek(0, wxFromEnd) != wxInvalidOffset)
if (file.Seek(0, wxFromEnd))
{
strcpy(buf, "</project>\n");
file.Write(buf, strlen(buf));

View File

@ -32,8 +32,8 @@
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Delay, float, XO("Delay"), 1.0, 0.001, FLT_MAX, 1 );
Param( Decay, float, XO("Decay"), 0.5, 0.0, FLT_MAX, 1 );
Param( Delay, float, XO("Delay"), 1.0f, 0.001f, FLT_MAX, 1.0f );
Param( Decay, float, XO("Decay"), 0.5f, 0.0f, FLT_MAX, 1.0f );
EffectEcho::EffectEcho()
{

View File

@ -1848,7 +1848,7 @@ void NyquistEffect::BuildEffectWindow(ShuttleGui & S)
S.AddSpace(10, 10);
wxArrayString choices = wxStringTokenize(ctrl.label, wxT(","));
wxChoice *item = S.Id(ID_Choice + i).AddChoice(wxT(""), wxT(""), &choices);
S.Id(ID_Choice + i).AddChoice(wxT(""), wxT(""), &choices);
}
else
{