[cstdstring] removal of Trim/TrimLeft/TrimRight
[vuplus_xbmc] / xbmc / cores / dvdplayer / DVDSubtitles / DVDSubtitleParserSubrip.cpp
index 1f28fa4..eb6283a 100644 (file)
@@ -22,6 +22,7 @@
 #include "DVDCodecs/Overlay/DVDOverlayText.h"
 #include "DVDClock.h"
 #include "utils/StdString.h"
+#include "utils/StringUtils.h"
 #include "DVDSubtitleTagSami.h"
 
 using namespace std;
@@ -51,7 +52,7 @@ bool CDVDSubtitleParserSubrip::Open(CDVDStreamInfo &hints)
   while (m_pStream->ReadLine(line, sizeof(line)))
   {
     strLine = line;
-    strLine.Trim();
+    StringUtils::Trim(strLine);
 
     if (strLine.length() > 0)
     {
@@ -76,7 +77,7 @@ bool CDVDSubtitleParserSubrip::Open(CDVDStreamInfo &hints)
         while (m_pStream->ReadLine(line, sizeof(line)))
         {
           strLine = line;
-          strLine.Trim();
+          StringUtils::Trim(strLine);
 
           // empty line, next subtitle is about to start
           if (strLine.length() <= 0) break;