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

This commit is contained in:
jst%mozilla.jstenback.com 2006-05-17 02:38:14 +00:00
Родитель af2cb5023a
Коммит fa16aa634c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -46,6 +46,7 @@
#include "nsIWidget.h"
#include "nsIPresShell.h"
#include "nsIFrame.h"
#include "nsReadableUtils.h"
#include "prprf.h"
@ -77,7 +78,7 @@ inFlasher::GetColor(nsAString& aColor)
char buf[10];
PR_snprintf(buf, sizeof(buf), "#%02x%02x%02x",
NS_GET_R(mColor), NS_GET_G(mColor), NS_GET_B(mColor));
aColor.Assign(NS_ConvertASCIItoUCS2(buf));
CopyASCIItoUTF16(buf, aColor);
return NS_OK;
}