[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/magnatunebrowser
From: Nikolaj Hald Nielsen <nhnFreespirit () gmail ! com>
Date: 2007-02-03 22:20:23
Message-ID: 1170541223.717755.915.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 629853 by nhnielsen:
first little qt4 fix: QString::find -> QString::indexOf
M +5 -5 magnatuneartistinfobox.cpp
--- trunk/extragear/multimedia/amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp #629852:629853
@@ -115,21 +115,21 @@
QString trimmedHtml;
- int sectionStart = artistPage.find( "<!-- ARTISTBODY -->" );
- int sectionEnd = artistPage.find( "<!-- /ARTISTBODY -->", sectionStart );
+ int sectionStart = artistPage.indexOf( "<!-- ARTISTBODY -->" );
+ int sectionEnd = artistPage.indexOf( "<!-- /ARTISTBODY -->", sectionStart );
trimmedHtml = artistPage.mid( sectionStart, sectionEnd - sectionStart );
- int buyStartIndex = trimmedHtml.find( "<!-- PURCHASE -->" );
+ int buyStartIndex = trimmedHtml.indexOf( "<!-- PURCHASE -->" );
int buyEndIndex;
//we are going to integrate the buying of music (I hope) so remove these links
while ( buyStartIndex != -1 )
{
- buyEndIndex = trimmedHtml.find( "<!-- /PURCHASE -->", buyStartIndex ) + 18;
+ buyEndIndex = trimmedHtml.indexOf( "<!-- /PURCHASE -->", buyStartIndex ) + 18;
trimmedHtml.remove( buyStartIndex, buyEndIndex - buyStartIndex );
- buyStartIndex = trimmedHtml.find( "<!-- PURCHASE -->", buyStartIndex );
+ buyStartIndex = trimmedHtml.indexOf( "<!-- PURCHASE -->", buyStartIndex );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic