]> git.sesse.net Git - vlc/commitdiff
* replaced a couple of to-be-deprecated cStrings by UTF8Strings
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 8 Jul 2007 23:00:52 +0000 (23:00 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 8 Jul 2007 23:00:52 +0000 (23:00 +0000)
modules/gui/macosx/playlist.m
modules/gui/macosx/prefs_widgets.m

index aeba4123db44de9b6e763d23d30dbbcd27ed9b5c..8a05d7da3ae0cd17c2ce7374c8c245753dbbd055 100644 (file)
     NSMenuItem *o_mi = (NSMenuItem *)sender;
     NSString *o_string = [o_mi representedObject];
     playlist_t * p_playlist = pl_Yield( VLCIntf );
-    if( !playlist_IsServicesDiscoveryLoaded( p_playlist, [o_string cString] ) )
-        playlist_ServicesDiscoveryAdd( p_playlist, [o_string cString] );
+    if( !playlist_IsServicesDiscoveryLoaded( p_playlist, [o_string UTF8String] ) )
+        playlist_ServicesDiscoveryAdd( p_playlist, [o_string UTF8String] );
     else
-        playlist_ServicesDiscoveryRemove( p_playlist, [o_string cString] );
+        playlist_ServicesDiscoveryRemove( p_playlist, [o_string UTF8String] );
 
     [o_mi setState: playlist_IsServicesDiscoveryLoaded( p_playlist,
-                                          [o_string cString] ) ? YES : NO];
+                                          [o_string UTF8String] ) ? YES : NO];
 
     vlc_object_release( p_playlist );
     [self playlistUpdated];
index d4f979d87560f89c70dcb59307eed18a28858042..098c0e7213069fcf31ae5e4f3e39bc5b95bedd90 100644 (file)
@@ -2215,7 +2215,7 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
 
 - (char *)stringValue
 {
-    return strdup( [[o_textfield stringValue] cString] );
+    return strdup( [[o_textfield stringValue] UTF8String] );
 }
 
 @end