mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +02:00
Linty fixes
This commit fixes a number of warnings shown in compilation with MSVC. No behavioral changes intended. I did not fix signed/unsigned warnings.
This commit is contained in:
parent
26a6815db8
commit
c28be778e2
@ -1595,7 +1595,7 @@ void LabelTrack::HandleGlyphClick
|
|||||||
float t = 0.0;
|
float t = 0.0;
|
||||||
// We move if we hit the centre, we adjust one edge if we hit a chevron.
|
// We move if we hit the centre, we adjust one edge if we hit a chevron.
|
||||||
// This is if we are moving just one edge.
|
// This is if we are moving just one edge.
|
||||||
hit.mbIsMoving = hit.mEdge & 4;
|
hit.mbIsMoving = (hit.mEdge & 4)!=0;
|
||||||
// When we start dragging the label(s) we don't want them to jump.
|
// When we start dragging the label(s) we don't want them to jump.
|
||||||
// so we calculate the displacement of the mouse from the drag center
|
// so we calculate the displacement of the mouse from the drag center
|
||||||
// and use that in subsequent dragging calculations. The mouse stays
|
// and use that in subsequent dragging calculations. The mouse stays
|
||||||
|
@ -3214,7 +3214,7 @@ void TrackInfo::DrawBordersWithin
|
|||||||
|
|
||||||
GetMuteSoloRect( rect, buttonRect, false, true, &track );
|
GetMuteSoloRect( rect, buttonRect, false, true, &track );
|
||||||
|
|
||||||
bool bHasMuteSolo = dynamic_cast<const PlayableTrack*>( &track );
|
bool bHasMuteSolo = dynamic_cast<const PlayableTrack*>( &track ) != NULL;
|
||||||
if( bHasMuteSolo && !TrackInfo::HideTopItem( rect, buttonRect ) )
|
if( bHasMuteSolo && !TrackInfo::HideTopItem( rect, buttonRect ) )
|
||||||
{
|
{
|
||||||
// above mute/solo
|
// above mute/solo
|
||||||
|
@ -2437,7 +2437,6 @@ void WaveTrack::SplitAt(double t)
|
|||||||
{
|
{
|
||||||
if (c->WithinClip(t))
|
if (c->WithinClip(t))
|
||||||
{
|
{
|
||||||
double val;
|
|
||||||
t = LongSamplesToTime(TimeToLongSamples(t)); // put t on a sample
|
t = LongSamplesToTime(TimeToLongSamples(t)); // put t on a sample
|
||||||
auto newClip = make_movable<WaveClip>( *c, mDirManager, true );
|
auto newClip = make_movable<WaveClip>( *c, mDirManager, true );
|
||||||
c->Clear(t, c->GetEndTime());
|
c->Clear(t, c->GetEndTime());
|
||||||
|
@ -53,7 +53,7 @@ try
|
|||||||
mAudioFileName = std::move(audioFileName);
|
mAudioFileName = std::move(audioFileName);
|
||||||
mFormat = int16Sample;
|
mFormat = int16Sample;
|
||||||
}
|
}
|
||||||
catch ( const FileException & e )
|
catch ( const FileException & WXUNUSED(e) )
|
||||||
{
|
{
|
||||||
// The constructor SimpleBlockFile sometimes throws this,
|
// The constructor SimpleBlockFile sometimes throws this,
|
||||||
// but it never will for the arguments that were passed to it here.
|
// but it never will for the arguments that were passed to it here.
|
||||||
@ -319,7 +319,7 @@ bool ODDecodeBlockFile::IsSummaryAvailable() const
|
|||||||
|
|
||||||
bool ODDecodeBlockFile::IsDataAvailable() const
|
bool ODDecodeBlockFile::IsDataAvailable() const
|
||||||
{
|
{
|
||||||
return mDataAvailable;
|
return mDataAvailable != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Write the summary to disk, using the derived ReadData() to get the data
|
/// Write the summary to disk, using the derived ReadData() to get the data
|
||||||
|
@ -1641,7 +1641,7 @@ bool Effect::ProcessTrack(int count,
|
|||||||
{
|
{
|
||||||
processed = ProcessBlock(inBufPos.get(), outBufPos.get(), curBlockSize);
|
processed = ProcessBlock(inBufPos.get(), outBufPos.get(), curBlockSize);
|
||||||
}
|
}
|
||||||
catch( const AudacityException &e )
|
catch( const AudacityException & WXUNUSED(e) )
|
||||||
{
|
{
|
||||||
// PRL: Bug 437:
|
// PRL: Bug 437:
|
||||||
// Pass this along to our application-level handler
|
// Pass this along to our application-level handler
|
||||||
|
@ -129,7 +129,7 @@ UIHandle::Result LabelGlyphHandle::Drag
|
|||||||
HitTestPreview LabelGlyphHandle::Preview
|
HitTestPreview LabelGlyphHandle::Preview
|
||||||
(const TrackPanelMouseState &, const AudacityProject *)
|
(const TrackPanelMouseState &, const AudacityProject *)
|
||||||
{
|
{
|
||||||
return HitPreview( mHit.mEdge & 4 );
|
return HitPreview( (mHit.mEdge & 4 )!=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
UIHandle::Result LabelGlyphHandle::Release
|
UIHandle::Result LabelGlyphHandle::Release
|
||||||
|
@ -54,7 +54,7 @@ enum {
|
|||||||
|
|
||||||
bool SelectHandle::IsClicked() const
|
bool SelectHandle::IsClicked() const
|
||||||
{
|
{
|
||||||
return mSelectionStateChanger.get();
|
return mSelectionStateChanger.get() != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
@ -144,7 +144,7 @@ void LinkingHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
|
|||||||
wxFileName( FileNames::HtmlHelpDir(), href.Mid( 10 ) + wxT(".htm") ).GetFullPath();
|
wxFileName( FileNames::HtmlHelpDir(), href.Mid( 10 ) + wxT(".htm") ).GetFullPath();
|
||||||
if( wxFileExists( FileName ) )
|
if( wxFileExists( FileName ) )
|
||||||
{
|
{
|
||||||
HelpSystem::ShowHelp(this, FileName, wxEmptyString);
|
HelpSystem::ShowHelp(this, FileName, wxEmptyString, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -596,6 +596,7 @@ return theArray.Get();
|
|||||||
(NumericConverter::Type type)
|
(NumericConverter::Type type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
default:
|
||||||
case NumericConverter::TIME:
|
case NumericConverter::TIME:
|
||||||
return TimeConverterFormats();
|
return TimeConverterFormats();
|
||||||
case NumericConverter::FREQUENCY:
|
case NumericConverter::FREQUENCY:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user