mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 23:30:07 +02:00
Clean up a few warnings
This commit is contained in:
parent
4f4acffad1
commit
afe47be9e1
@ -655,7 +655,7 @@ bool AutoSaveFile::Decode(const wxString & fileName)
|
|||||||
// "</project>" somewhere.
|
// "</project>" somewhere.
|
||||||
const int bufsize = 16;
|
const int bufsize = 16;
|
||||||
char buf[bufsize + 1];
|
char buf[bufsize + 1];
|
||||||
if (file.SeekEnd(-bufsize) != wxInvalidOffset)
|
if (file.SeekEnd(-bufsize))
|
||||||
{
|
{
|
||||||
if (file.Read(buf, bufsize) == bufsize)
|
if (file.Read(buf, bufsize) == bufsize)
|
||||||
{
|
{
|
||||||
@ -663,7 +663,7 @@ bool AutoSaveFile::Decode(const wxString & fileName)
|
|||||||
if (strstr(buf, "</project>") == 0)
|
if (strstr(buf, "</project>") == 0)
|
||||||
{
|
{
|
||||||
// End of file does not contain closing </project> tag, so add it
|
// 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");
|
strcpy(buf, "</project>\n");
|
||||||
file.Write(buf, strlen(buf));
|
file.Write(buf, strlen(buf));
|
||||||
|
@ -32,8 +32,8 @@
|
|||||||
// Define keys, defaults, minimums, and maximums for the effect parameters
|
// Define keys, defaults, minimums, and maximums for the effect parameters
|
||||||
//
|
//
|
||||||
// Name Type Key Def Min Max Scale
|
// Name Type Key Def Min Max Scale
|
||||||
Param( Delay, float, XO("Delay"), 1.0, 0.001, FLT_MAX, 1 );
|
Param( Delay, float, XO("Delay"), 1.0f, 0.001f, FLT_MAX, 1.0f );
|
||||||
Param( Decay, float, XO("Decay"), 0.5, 0.0, FLT_MAX, 1 );
|
Param( Decay, float, XO("Decay"), 0.5f, 0.0f, FLT_MAX, 1.0f );
|
||||||
|
|
||||||
EffectEcho::EffectEcho()
|
EffectEcho::EffectEcho()
|
||||||
{
|
{
|
||||||
|
@ -1848,7 +1848,7 @@ void NyquistEffect::BuildEffectWindow(ShuttleGui & S)
|
|||||||
S.AddSpace(10, 10);
|
S.AddSpace(10, 10);
|
||||||
|
|
||||||
wxArrayString choices = wxStringTokenize(ctrl.label, wxT(","));
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user