@@ -328,7 +328,7 @@ ParseNoteData(RString& step1, RString& step2, Steps& out, const RString& path)
328328 break ;
329329 case 1 :
330330 if (step2 == " " ) // no data
331- continue ; // skip
331+ continue ; // skip
332332 sStepData = step2;
333333 break ;
334334 DEFAULT_FAIL (pad);
@@ -566,7 +566,8 @@ ParseBrokenDWITimestamp(const RString& arg1,
566566}
567567
568568void
569- DWILoader::GetApplicableFiles (const RString& sPath , vector<RString>& out)
569+ DWILoader::GetApplicableFiles (const std::string& sPath ,
570+ vector<std::string>& out)
570571{
571572 GetDirListing (sPath + RString (" *.dwi" ), out);
572573}
@@ -612,11 +613,11 @@ DWILoader::LoadNoteDataFromSimfile(const RString& path, Steps& out)
612613}
613614
614615bool
615- DWILoader::LoadFromDir (const RString & sPath_ ,
616+ DWILoader::LoadFromDir (const std::string & sPath_ ,
616617 Song& out,
617- set<RString >& BlacklistedImages)
618+ set<std::string >& BlacklistedImages)
618619{
619- vector<RString > aFileNames;
620+ vector<std::string > aFileNames;
620621 GetApplicableFiles (sPath_ , aFileNames);
621622
622623 if (aFileNames.size () > 1 ) {
@@ -629,7 +630,7 @@ DWILoader::LoadFromDir(const RString& sPath_,
629630 /* We should have exactly one; if we had none, we shouldn't have been called
630631 * to begin with. */
631632 ASSERT (aFileNames.size () == 1 );
632- const RString sPath = sPath_ + aFileNames[0 ];
633+ const std::string sPath = sPath_ + aFileNames[0 ];
633634
634635 LOG ->Trace (" Song::LoadFromDWIFile(%s)" , sPath .c_str ());
635636
@@ -738,11 +739,11 @@ DWILoader::LoadFromDir(const RString& sPath_,
738739 }
739740
740741 else if (sValueName .EqualsNoCase (" FREEZE" )) {
741- vector<RString > arrayFreezeExpressions;
742+ vector<std::string > arrayFreezeExpressions;
742743 split (sParams [1 ], " ," , arrayFreezeExpressions);
743744
744745 for (unsigned f = 0 ; f < arrayFreezeExpressions.size (); f++) {
745- vector<RString > arrayFreezeValues;
746+ vector<std::string > arrayFreezeValues;
746747 split (arrayFreezeExpressions[f], " =" , arrayFreezeValues);
747748 if (arrayFreezeValues.size () != 2 ) {
748749 LOG ->UserLog (" Song file" ,
@@ -765,11 +766,11 @@ DWILoader::LoadFromDir(const RString& sPath_,
765766
766767 else if (sValueName .EqualsNoCase (" CHANGEBPM" ) ||
767768 sValueName .EqualsNoCase (" BPMCHANGE" )) {
768- vector<RString > arrayBPMChangeExpressions;
769+ vector<std::string > arrayBPMChangeExpressions;
769770 split (sParams [1 ], " ," , arrayBPMChangeExpressions);
770771
771772 for (unsigned b = 0 ; b < arrayBPMChangeExpressions.size (); b++) {
772- vector<RString > arrayBPMChangeValues;
773+ vector<std::string > arrayBPMChangeValues;
773774 split (arrayBPMChangeExpressions[b], " =" , arrayBPMChangeValues);
774775 if (arrayBPMChangeValues.size () != 2 ) {
775776 LOG ->UserLog (" Song file" ,
@@ -815,23 +816,24 @@ DWILoader::LoadFromDir(const RString& sPath_,
815816 sValueName .EqualsNoCase (" DISPLAYARTIST" )) {
816817 /* We don't want to support these tags. However, we don't want
817818 * to pick up images used here as song images (eg. banners). */
818- RString param = sParams [1 ];
819+ std::string param = sParams [1 ];
819820 /* "{foo} ... {foo2}" */
820821 size_t pos = 0 ;
821- while (pos < RString ::npos) {
822+ while (pos < std::string ::npos) {
822823
823824 size_t startpos = param.find (' {' , pos);
824- if (startpos == RString ::npos)
825+ if (startpos == std::string ::npos)
825826 break ;
826827 size_t endpos = param.find (' }' , startpos);
827- if (endpos == RString ::npos)
828+ if (endpos == std::string ::npos)
828829 break ;
829830
830- RString sub = param.substr (startpos + 1 , endpos - startpos - 1 );
831+ std::string sub =
832+ param.substr (startpos + 1 , endpos - startpos - 1 );
831833
832834 pos = endpos + 1 ;
833835
834- sub. MakeLower ();
836+ MakeLower (sub );
835837 BlacklistedImages.insert (sub);
836838 }
837839 } else {
0 commit comments