mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Fix build problem on Tru64 Unix. Scc says the code should run faster
this way anyhow. r=scc
This commit is contained in:
parent
944208ec6d
commit
d7356d040a
@ -445,7 +445,7 @@ nsTextBoxFrame::CalculateTitleForWidth(nsIPresContext* aPresContext, nsIRenderin
|
||||
// insert what character we can in.
|
||||
nsAutoString title = mTitle;
|
||||
title.Truncate(i);
|
||||
mCroppedTitle = title + mCroppedTitle;
|
||||
mCroppedTitle.Insert(title, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -470,7 +470,7 @@ nsTextBoxFrame::CalculateTitleForWidth(nsIPresContext* aPresContext, nsIRenderin
|
||||
|
||||
nsAutoString copy;
|
||||
mTitle.Right(copy, length-i-1);
|
||||
mCroppedTitle = mCroppedTitle + copy;
|
||||
mCroppedTitle += copy;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user