Skip to content
This repository
Browse code

changed: pass strings through eclipses to avoid compiler warnings

  • Loading branch information...
commit c06ba50ab6f79930e4ca15ea8fec3bae28ffa6fb 1 parent 782ce0c
authored October 07, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  xbmc/Autorun.cpp
6  xbmc/Autorun.cpp
@@ -222,7 +222,7 @@ bool CAutorun::RunDisc(IDirectory* pDir, const CStdString& strDrive, int& nAdded
222 222
             items.Sort(SORT_METHOD_LABEL, SortOrderDescending);
223 223
             phddvdItem = pItem; 
224 224
             hddvdname = URIUtils::GetFileName(items[0]->GetPath());
225  
-            CLog::Log(LOGINFO,"HD DVD: " + items[0]->GetPath());
  225
+            CLog::Log(LOGINFO,"HD DVD: %s", items[0]->GetPath().c_str());
226 226
           }
227 227
         }
228 228
 
@@ -242,7 +242,7 @@ bool CAutorun::RunDisc(IDirectory* pDir, const CStdString& strDrive, int& nAdded
242 242
               items.Sort(SORT_METHOD_LABEL, SortOrderAscending);
243 243
               phddvdItem = pItem; 
244 244
               hddvdname = URIUtils::GetFileName(items[0]->GetPath());
245  
-              CLog::Log(LOGINFO,"HD DVD: " + items[0]->GetPath());
  245
+              CLog::Log(LOGINFO,"HD DVD: %s",items[0]->GetPath().c_str());
246 246
             }
247 247
           }
248 248
           // Find and sort *.evo files for internal playback.
@@ -294,7 +294,7 @@ bool CAutorun::RunDisc(IDirectory* pDir, const CStdString& strDrive, int& nAdded
294 294
             // If no matching rule was found, DVDPlayer will be default player.
295 295
             if (hddvdplayer != "DVDPlayer")
296 296
             {
297  
-              CLog::Log(LOGINFO,"HD DVD: External singlefile playback initiated: "+ hddvdname);
  297
+              CLog::Log(LOGINFO,"HD DVD: External singlefile playback initiated: %s",hddvdname.c_str());
298 298
               g_application.PlayFile(item, false);
299 299
               bPlaying = true;
300 300
               return true;

0 notes on commit c06ba50

Please sign in to comment.
Something went wrong with that request. Please try again.