Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -547,7 +547,7 @@ NS_IMETHODIMP CViewSourceHTML::BuildModel(nsIParser* aParser,nsITokenizer* aToke
|
||||
mSink->OpenHead(headNode);
|
||||
|
||||
// Note that XUL will automatically add the prefix "Source of: "
|
||||
if (Substring(mFilename, 0, 5).Equals(NS_LITERAL_STRING("data:")) &&
|
||||
if (StringBeginsWith(mFilename, NS_LITERAL_STRING("data:")) &&
|
||||
mFilename.Length() > 50) {
|
||||
nsAutoString dataFilename(Substring(mFilename, 0, 50));
|
||||
dataFilename.Append(NS_LITERAL_STRING("..."));
|
||||
|
||||
Reference in New Issue
Block a user