Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org

git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2004-01-29 22:04:45 +00:00
parent a4fdb69d95
commit 6629ad58f7
107 changed files with 299 additions and 275 deletions

View File

@@ -340,9 +340,8 @@ mozSqlService::GetNewConnection(nsIRDFResource* aAlias, mozISqlConnection **_ret
if (NS_FAILED(rv))
return rv;
nsCAutoString contractID(
NS_LITERAL_CSTRING("@mozilla.org/sql/connection;1?type=") +
NS_ConvertUCS2toUTF8(type));
nsCAutoString contractID("@mozilla.org/sql/connection;1?type=");
AppendUTF16toUTF8(type, contractID);
nsCOMPtr<mozISqlConnection> conn = do_CreateInstance(contractID.get());
if (! conn)