Remove deprecated nsTString::ToCString (bug 323471). r+sr=darin.

git-svn-id: svn://10.0.0.236/trunk@188104 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2006-01-24 19:22:02 +00:00
parent d7530f69ae
commit 256fd4c351
23 changed files with 71 additions and 155 deletions

View File

@@ -285,19 +285,10 @@ NSRegisterSelf( nsISupports* aServMgr, const char* aPath )
aPath, PR_TRUE, PR_TRUE );
// Register the plugin portion.
nsString contractID;
contractID.AssignWithConversion( NS_INLINE_PLUGIN_CONTRACTID_PREFIX );
contractID.AppendWithConversion(PLUGIN_MIME_TYPE);
buf = ( char * )calloc( 2000, sizeof( char ) );
contractID.ToCString( buf, 1999 );
rv = compMgr->RegisterComponent( knsSanePluginInst,
"SANE Plugin Component",
buf,
NS_INLINE_PLUGIN_CONTRACTID_PREFIX PLUGIN_MIME_TYPE
aPath, PR_TRUE, PR_TRUE);
free( buf );
if ( NS_FAILED( rv ) )
return rv;