Skip to content

Commit

Permalink
Fix compilation with gcc and fix some warnings with wxString Trim
Browse files Browse the repository at this point in the history
  • Loading branch information
anonbeat committed May 20, 2020
1 parent dffe91c commit 6be35ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/ui/jamendo/Jamendo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ guJamendoUpdateThread::~guJamendoUpdateThread()
}
}

#if 0
/*
<JamendoData epoch="1282819258" documentation="http://developer.jamendo.com/en/wiki/DatabaseDumps" type="artistalbumtrack">
<Artists>
<artist>
Expand Down Expand Up @@ -538,8 +538,7 @@ guJamendoUpdateThread::~guJamendoUpdateThread()
</artist>
...
</Artists>
#endif

*/

// -------------------------------------------------------------------------------- //
void ReadJamendoXmlTrack( wxXmlNode * xmlnode, guJamendoUpdateThread * thread, guTrack * track )
Expand Down
4 changes: 2 additions & 2 deletions src/ui/mediaviewer/playlists/PlayListFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ bool guPlaylistFile::ReadM3uStream( wxInputStream &playlist, const wxString &pat
int Count = Lines.Count();
for( Index = 0; Index < Count; Index++ )
{
Lines[ Index ].Trim( wxString::both );
Lines[ Index ].Trim( false ).Trim( true );
if( Lines[ Index ].IsEmpty() || ( Lines[ Index ].Find( wxT( "#EXTM3U" ) ) != wxNOT_FOUND ) )
{
continue;
Expand Down Expand Up @@ -676,7 +676,7 @@ bool guCuePlaylistFile::LoadFromText( const wxString &content )
int Count = Lines.Count();
for( Index = 0; Index < Count; Index++ )
{
Lines[ Index ].Trim( wxString::both );
Lines[ Index ].Trim( false ).Trim( true );
wxString Line = Lines[ Index ];
//guLogMessage( wxT( "'%s'" ), Line.c_str() );
wxArrayString Keys = wxStringTokenize( Line, wxT( " " ) );
Expand Down
2 changes: 1 addition & 1 deletion src/ui/podcasts/PodcastsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ void guPodcastPanel::AddChannel( wxCommandEvent &event )
wxSetCursor( * wxHOURGLASS_CURSOR );
wxTheApp->Yield();

wxString PodcastUrl = NewPodcastChannel->GetValue().Trim( wxString::both );
wxString PodcastUrl = NewPodcastChannel->GetValue().Trim( false ).Trim( true );
if( !PodcastUrl.IsEmpty() )
{
// If we find an itunes link we replace the itpc to the standard http
Expand Down

0 comments on commit 6be35ba

Please sign in to comment.