mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869836 - Part 3: Use Append('c')
instead of AppendLiteral("c")
. r=ehsan
This commit is contained in:
parent
41bdca1ff6
commit
016d46e5f3
@ -96,7 +96,7 @@ ProgressMeterAccessible<Max>::Value(nsString& aValue)
|
||||
(curValue / maxValue) * 100 : 100;
|
||||
|
||||
aValue.AppendFloat(percentValue);
|
||||
aValue.AppendLiteral("%");
|
||||
aValue.Append('%');
|
||||
}
|
||||
|
||||
template<int Max>
|
||||
|
@ -302,7 +302,7 @@ XULTreeGridRowAccessible::Name(nsString& aName)
|
||||
nsCOMPtr<nsITreeColumn> column = nsCoreUtils::GetFirstSensibleColumn(mTree);
|
||||
while (column) {
|
||||
if (!aName.IsEmpty())
|
||||
aName.AppendLiteral(" ");
|
||||
aName.Append(' ');
|
||||
|
||||
nsAutoString cellName;
|
||||
GetCellName(column, cellName);
|
||||
|
@ -199,7 +199,7 @@ nsPrincipal::GetOriginForURI(nsIURI* aURI, char **aOrigin)
|
||||
|
||||
if (NS_SUCCEEDED(rv) && !isChrome) {
|
||||
if (port != -1) {
|
||||
hostPort.AppendLiteral(":");
|
||||
hostPort.Append(':');
|
||||
hostPort.AppendInt(port, 10);
|
||||
}
|
||||
|
||||
|
@ -1763,7 +1763,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(FragmentOrElement)
|
||||
if (idAtom) {
|
||||
id.AppendLiteral(" id='");
|
||||
id.Append(nsDependentAtomString(idAtom));
|
||||
id.AppendLiteral("'");
|
||||
id.Append('\'');
|
||||
}
|
||||
|
||||
nsAutoString classes;
|
||||
@ -1774,7 +1774,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(FragmentOrElement)
|
||||
classAttrValue->ToString(classString);
|
||||
classString.ReplaceChar(char16_t('\n'), char16_t(' '));
|
||||
classes.Append(classString);
|
||||
classes.AppendLiteral("'");
|
||||
classes.Append('\'');
|
||||
}
|
||||
|
||||
nsAutoCString orphan;
|
||||
|
@ -1019,7 +1019,7 @@ WebSocket::ParseURL(const nsString& aURL)
|
||||
|
||||
mResource = filePath;
|
||||
if (!query.IsEmpty()) {
|
||||
mResource.AppendLiteral("?");
|
||||
mResource.Append('?');
|
||||
mResource.Append(query);
|
||||
}
|
||||
uint32_t length = mResource.Length();
|
||||
|
@ -728,7 +728,7 @@ DragDataProducer::AddStringsToDataTransfer(nsIContent* aDragNode,
|
||||
// a URL in the drag data
|
||||
if (!mUrlString.IsEmpty() && mIsAnchor) {
|
||||
nsAutoString dragData(mUrlString);
|
||||
dragData.AppendLiteral("\n");
|
||||
dragData.Append('\n');
|
||||
// Remove leading and trailing newlines in the title and replace them with
|
||||
// space in remaining positions - they confuse PlacesUtils::unwrapNodes
|
||||
// that expects url\ntitle formatted data for x-moz-url.
|
||||
|
@ -224,7 +224,7 @@ SVGAnimatedPreserveAspectRatio::GetBaseValueString(
|
||||
|
||||
if (mBaseVal.mAlign != uint8_t(SVG_PRESERVEASPECTRATIO_NONE)) {
|
||||
|
||||
aValueAsString.AppendLiteral(" ");
|
||||
aValueAsString.Append(' ');
|
||||
GetMeetOrSliceString(tmpString, mBaseVal.mMeetOrSlice);
|
||||
aValueAsString.Append(tmpString);
|
||||
}
|
||||
|
@ -1843,7 +1843,7 @@ nsXULContentBuilder::InsertSortedNode(nsIContent* aContainer,
|
||||
mRoot->GetAttr(kNameSpaceID_None, nsGkAtoms::sort, sort);
|
||||
mRoot->GetAttr(kNameSpaceID_None, nsGkAtoms::sortDirection, sortDirection);
|
||||
mRoot->GetAttr(kNameSpaceID_None, nsGkAtoms::sorthints, sortHints);
|
||||
sortDirection.AppendLiteral(" ");
|
||||
sortDirection += ' ';
|
||||
sortDirection += sortHints;
|
||||
rv = XULSortServiceImpl::InitializeSortState(mRoot, aContainer,
|
||||
sort, sortDirection, &mSortState);
|
||||
|
@ -373,7 +373,7 @@ XULSortServiceImpl::InitializeSortState(nsIContent* aRootElement,
|
||||
if (!sortResource2.IsEmpty()) {
|
||||
nsCOMPtr<nsIAtom> sortkeyatom2 = do_GetAtom(sortResource2);
|
||||
aSortState->sortKeys.AppendObject(sortkeyatom2);
|
||||
sort.AppendLiteral(" ");
|
||||
sort.Append(' ');
|
||||
sort.Append(sortResource2);
|
||||
}
|
||||
}
|
||||
|
@ -507,7 +507,7 @@ nsDSURIContentListener::ReportXFOViolation(nsIDocShellTreeItem* aTopDocShellItem
|
||||
case eALLOWFROM:
|
||||
msg.AppendLiteral(" does not permit framing by ");
|
||||
msg.Append(NS_ConvertUTF8toUTF16(topURIString));
|
||||
msg.AppendLiteral(".");
|
||||
msg.Append('.');
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -100,15 +100,15 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(nsJSScriptTimeoutHandler)
|
||||
name.AppendLiteral(" [");
|
||||
name.Append(funIdName);
|
||||
delete[] funIdName;
|
||||
name.AppendLiteral("]");
|
||||
name.Append(']');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
name.AppendLiteral(" [");
|
||||
name.Append(tmp->mFileName);
|
||||
name.AppendLiteral(":");
|
||||
name.Append(':');
|
||||
name.AppendInt(tmp->mLineNo);
|
||||
name.AppendLiteral("]");
|
||||
name.Append(']');
|
||||
}
|
||||
cb.DescribeRefCountedNode(tmp->mRefCnt.get(), name.get());
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ InterfaceObjectToString(JSContext* cx, unsigned argc, JS::Value *vp)
|
||||
str.Append('\n');
|
||||
str.AppendLiteral(" [native code]");
|
||||
str.Append('\n');
|
||||
str.AppendLiteral("}");
|
||||
str.Append('}');
|
||||
|
||||
return xpc::NonVoidStringToJsval(cx, str, args.rval());
|
||||
}
|
||||
|
@ -716,7 +716,7 @@ BluetoothOppManager::RetrieveSentFileName()
|
||||
EmptyCString(),
|
||||
extension);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
mFileName.AppendLiteral(".");
|
||||
mFileName.Append('.');
|
||||
AppendUTF8toUTF16(extension, mFileName);
|
||||
}
|
||||
}
|
||||
|
@ -1211,9 +1211,9 @@ BluetoothHfpManager::SendCLCC(const Call& aCall, int aIndex)
|
||||
|
||||
nsAutoCString message(RESPONSE_CLCC);
|
||||
message.AppendInt(aIndex);
|
||||
message.AppendLiteral(",");
|
||||
message.Append(',');
|
||||
message.AppendInt(aCall.mDirection);
|
||||
message.AppendLiteral(",");
|
||||
message.Append(',');
|
||||
|
||||
int status = 0;
|
||||
switch (aCall.mState) {
|
||||
@ -1290,7 +1290,7 @@ BluetoothHfpManager::SendCommand(const char* aCommand, uint32_t aValue)
|
||||
}
|
||||
|
||||
message.AppendInt(aValue);
|
||||
message.AppendLiteral(",");
|
||||
message.Append(',');
|
||||
message.AppendInt(sCINDItems[aValue].value);
|
||||
} else if (!strcmp(aCommand, RESPONSE_CIND)) {
|
||||
if (!aValue) {
|
||||
@ -1300,9 +1300,9 @@ BluetoothHfpManager::SendCommand(const char* aCommand, uint32_t aValue)
|
||||
message.Append(sCINDItems[i].name);
|
||||
message.AppendLiteral("\",(");
|
||||
message.Append(sCINDItems[i].range);
|
||||
message.AppendLiteral(")");
|
||||
message.Append(')');
|
||||
if (i == (ArrayLength(sCINDItems) - 1)) {
|
||||
message.AppendLiteral(")");
|
||||
message.Append(')');
|
||||
break;
|
||||
}
|
||||
message.AppendLiteral("),");
|
||||
@ -1314,7 +1314,7 @@ BluetoothHfpManager::SendCommand(const char* aCommand, uint32_t aValue)
|
||||
if (i == (ArrayLength(sCINDItems) - 1)) {
|
||||
break;
|
||||
}
|
||||
message.AppendLiteral(",");
|
||||
message.Append(',');
|
||||
}
|
||||
}
|
||||
#ifdef MOZ_B2G_RIL
|
||||
|
@ -738,7 +738,7 @@ BluetoothOppManager::RetrieveSentFileName()
|
||||
EmptyCString(),
|
||||
extension);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
mFileName.AppendLiteral(".");
|
||||
mFileName.Append('.');
|
||||
AppendUTF8toUTF16(extension, mFileName);
|
||||
}
|
||||
}
|
||||
|
@ -359,7 +359,7 @@ DeviceStorageRequestParent::EnsureRequiredPermissions(
|
||||
return false;
|
||||
}
|
||||
|
||||
permissionName.AppendLiteral("-");
|
||||
permissionName.Append('-');
|
||||
permissionName.Append(access);
|
||||
|
||||
if (!AssertAppProcessPermission(aParent, permissionName.get())) {
|
||||
|
@ -317,7 +317,7 @@ DeviceStorageTypeChecker::Check(const nsAString& aType, nsIFile* aFile)
|
||||
nsAutoString extensionMatch;
|
||||
extensionMatch.AssignLiteral("*");
|
||||
extensionMatch.Append(Substring(path, dotIdx));
|
||||
extensionMatch.AppendLiteral(";");
|
||||
extensionMatch.Append(';');
|
||||
|
||||
if (aType.EqualsLiteral(DEVICESTORAGE_PICTURES)) {
|
||||
return CaseInsensitiveFindInReadable(extensionMatch, mPicturesExtensions);
|
||||
@ -360,7 +360,7 @@ DeviceStorageTypeChecker::GetTypeFromFileName(const nsAString& aFileName,
|
||||
nsAutoString extensionMatch;
|
||||
extensionMatch.AssignLiteral("*");
|
||||
extensionMatch.Append(Substring(aFileName, dotIdx));
|
||||
extensionMatch.AppendLiteral(";");
|
||||
extensionMatch.Append(';');
|
||||
|
||||
if (CaseInsensitiveFindInReadable(extensionMatch, mPicturesExtensions)) {
|
||||
aType.AssignLiteral(DEVICESTORAGE_PICTURES);
|
||||
@ -802,13 +802,13 @@ DeviceStorageFile::GetFullPath(nsAString &aFullPath)
|
||||
{
|
||||
aFullPath.Truncate();
|
||||
if (!mStorageName.EqualsLiteral("")) {
|
||||
aFullPath.AppendLiteral("/");
|
||||
aFullPath.Append('/');
|
||||
aFullPath.Append(mStorageName);
|
||||
aFullPath.AppendLiteral("/");
|
||||
aFullPath.Append('/');
|
||||
}
|
||||
if (!mRootDir.EqualsLiteral("")) {
|
||||
aFullPath.Append(mRootDir);
|
||||
aFullPath.AppendLiteral("/");
|
||||
aFullPath.Append('/');
|
||||
}
|
||||
aFullPath.Append(mPath);
|
||||
}
|
||||
|
@ -157,19 +157,19 @@ GetModifierList(bool aCtrl, bool aShift, bool aAlt, bool aMeta,
|
||||
}
|
||||
if (aShift) {
|
||||
if (!aModifierList.IsEmpty()) {
|
||||
aModifierList.AppendLiteral(" ");
|
||||
aModifierList.Append(' ');
|
||||
}
|
||||
aModifierList.AppendLiteral(NS_DOM_KEYNAME_SHIFT);
|
||||
}
|
||||
if (aAlt) {
|
||||
if (!aModifierList.IsEmpty()) {
|
||||
aModifierList.AppendLiteral(" ");
|
||||
aModifierList.Append(' ');
|
||||
}
|
||||
aModifierList.AppendLiteral(NS_DOM_KEYNAME_ALT);
|
||||
}
|
||||
if (aMeta) {
|
||||
if (!aModifierList.IsEmpty()) {
|
||||
aModifierList.AppendLiteral(" ");
|
||||
aModifierList.Append(' ');
|
||||
}
|
||||
aModifierList.AppendLiteral(NS_DOM_KEYNAME_META);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ DeviceStorageFileSystem::DeviceStorageFileSystem(
|
||||
// Generate the string representation of the file system.
|
||||
mString.AppendLiteral("devicestorage-");
|
||||
mString.Append(mStorageType);
|
||||
mString.AppendLiteral("-");
|
||||
mString.Append('-');
|
||||
mString.Append(mStorageName);
|
||||
|
||||
mIsTesting =
|
||||
|
@ -64,7 +64,7 @@ FileSystemRequestParent::Dispatch(ContentParent* aParent,
|
||||
|
||||
nsAutoCString permissionName;
|
||||
permissionName = mFileSystem->GetPermission();
|
||||
permissionName.AppendLiteral("-");
|
||||
permissionName.Append('-');
|
||||
permissionName.Append(access);
|
||||
|
||||
if (!AssertAppProcessPermission(aParent, permissionName.get())) {
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
clause.Append(andStr + aKeyColumnName);
|
||||
clause.AppendLiteral(" >");
|
||||
if (!IsLowerOpen()) {
|
||||
clause.AppendLiteral("=");
|
||||
clause.Append('=');
|
||||
}
|
||||
clause.Append(spacecolon + lowerKey);
|
||||
}
|
||||
@ -109,7 +109,7 @@ public:
|
||||
clause.Append(andStr + aKeyColumnName);
|
||||
clause.AppendLiteral(" <");
|
||||
if (!IsUpperOpen()) {
|
||||
clause.AppendLiteral("=");
|
||||
clause.Append('=');
|
||||
}
|
||||
clause.Append(spacecolon + NS_LITERAL_CSTRING("upper_key"));
|
||||
}
|
||||
|
@ -94,14 +94,14 @@ AppendConditionClause(const nsACString& aColumnName,
|
||||
NS_LITERAL_CSTRING(" ");
|
||||
|
||||
if (aLessThan) {
|
||||
aResult.AppendLiteral("<");
|
||||
aResult.Append('<');
|
||||
}
|
||||
else {
|
||||
aResult.AppendLiteral(">");
|
||||
aResult.Append('>');
|
||||
}
|
||||
|
||||
if (aEquals) {
|
||||
aResult.AppendLiteral("=");
|
||||
aResult.Append('=');
|
||||
}
|
||||
|
||||
aResult += NS_LITERAL_CSTRING(" :") + aArgName;
|
||||
|
@ -617,7 +617,7 @@ ContentChild::GetProcessName(nsACString& aName)
|
||||
ContentChild::AppendProcessId(nsACString& aName)
|
||||
{
|
||||
if (!aName.IsEmpty()) {
|
||||
aName.AppendLiteral(" ");
|
||||
aName.Append(' ');
|
||||
}
|
||||
unsigned pid = getpid();
|
||||
aName.Append(nsPrintfCString("(pid %u)", pid));
|
||||
|
@ -1181,7 +1181,7 @@ ParticularProcessPriorityManager::FireTestOnlyObserverNotification(
|
||||
|
||||
nsAutoCString data(nsPrintfCString("%lld", ChildID()));
|
||||
if (!aData.IsEmpty()) {
|
||||
data.AppendLiteral(":");
|
||||
data.Append(':');
|
||||
data.Append(aData);
|
||||
}
|
||||
|
||||
|
@ -429,7 +429,7 @@ Notification::Notification(const nsAString& aID, const nsAString& aTitle, const
|
||||
|
||||
// Get the notification name that is unique per origin + tag/ID.
|
||||
// The name of the alert is of the form origin#tag/ID.
|
||||
alertName.AppendLiteral("#");
|
||||
alertName.Append('#');
|
||||
if (!mTag.IsEmpty()) {
|
||||
alertName.AppendLiteral("tag:");
|
||||
alertName.Append(mTag);
|
||||
|
@ -76,7 +76,7 @@ CreateReversedDomain(const nsACString& aAsciiDomain,
|
||||
|
||||
ReverseString(aAsciiDomain, aKey);
|
||||
|
||||
aKey.AppendLiteral(".");
|
||||
aKey.Append('.');
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -3390,7 +3390,7 @@ WorkerPrivateParent<Derived>::SetBaseURI(nsIURI* aBaseURI)
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(aBaseURI->GetScheme(mLocationInfo.mProtocol))) {
|
||||
mLocationInfo.mProtocol.AppendLiteral(":");
|
||||
mLocationInfo.mProtocol.Append(':');
|
||||
}
|
||||
else {
|
||||
mLocationInfo.mProtocol.Truncate();
|
||||
@ -3401,7 +3401,7 @@ WorkerPrivateParent<Derived>::SetBaseURI(nsIURI* aBaseURI)
|
||||
mLocationInfo.mPort.AppendInt(port);
|
||||
|
||||
nsAutoCString host(mLocationInfo.mHostname);
|
||||
host.AppendLiteral(":");
|
||||
host.Append(':');
|
||||
host.Append(mLocationInfo.mPort);
|
||||
|
||||
mLocationInfo.mHost.Assign(host);
|
||||
|
@ -48,13 +48,13 @@ txUnionNodeTest::isSensitiveTo(Expr::ContextSensitivity aContext)
|
||||
void
|
||||
txUnionNodeTest::toString(nsAString& aDest)
|
||||
{
|
||||
aDest.AppendLiteral("(");
|
||||
aDest.Append('(');
|
||||
for (uint32_t i = 0; i < mNodeTests.Length(); ++i) {
|
||||
if (i != 0) {
|
||||
aDest.AppendLiteral(" | ");
|
||||
}
|
||||
mNodeTests[i]->toString(aDest);
|
||||
}
|
||||
aDest.AppendLiteral(")");
|
||||
aDest.Append(')');
|
||||
}
|
||||
#endif
|
||||
|
@ -4574,7 +4574,7 @@ nsHTMLEditor::SetAttributeOrEquivalent(nsIDOMElement * aElement,
|
||||
bool wasSet = false;
|
||||
res = GetAttributeValue(aElement, NS_LITERAL_STRING("style"), existingValue, &wasSet);
|
||||
NS_ENSURE_SUCCESS(res, res);
|
||||
existingValue.AppendLiteral(" ");
|
||||
existingValue.Append(' ');
|
||||
existingValue.Append(aValue);
|
||||
if (aSuppressTransaction)
|
||||
res = aElement->SetAttribute(aAttribute, existingValue);
|
||||
|
@ -23,7 +23,7 @@ FILE* operator<<(FILE* out, const nsRect& rect)
|
||||
nsAutoString tmp;
|
||||
|
||||
// Output the coordinates in fractional pixels so they're easier to read
|
||||
tmp.AppendLiteral("{");
|
||||
tmp.Append('{');
|
||||
tmp.AppendFloat(NSAppUnitsToFloatPixels(rect.x,
|
||||
nsDeviceContext::AppUnitsPerCSSPixel()));
|
||||
tmp.AppendLiteral(", ");
|
||||
@ -35,7 +35,7 @@ FILE* operator<<(FILE* out, const nsRect& rect)
|
||||
tmp.AppendLiteral(", ");
|
||||
tmp.AppendFloat(NSAppUnitsToFloatPixels(rect.height,
|
||||
nsDeviceContext::AppUnitsPerCSSPixel()));
|
||||
tmp.AppendLiteral("}");
|
||||
tmp.Append('}');
|
||||
fputs(NS_LossyConvertUTF16toASCII(tmp).get(), out);
|
||||
return out;
|
||||
}
|
||||
|
@ -925,7 +925,7 @@ nsRect nsRegion::GetLargestRectangle (const nsRect& aContainingRect) const {
|
||||
nsCString
|
||||
nsRegion::ToString() const {
|
||||
nsCString result;
|
||||
result.AppendLiteral("[");
|
||||
result.Append('[');
|
||||
|
||||
int n;
|
||||
pixman_box32_t *boxes = pixman_region32_rectangles(const_cast<pixman_region32_t*>(&mImpl), &n);
|
||||
@ -936,7 +936,7 @@ nsRegion::ToString() const {
|
||||
result.Append(nsPrintfCString("%d,%d,%d,%d", boxes[i].x1, boxes[i].y1, boxes[i].x2, boxes[i].y2));
|
||||
|
||||
}
|
||||
result.AppendLiteral("]");
|
||||
result.Append(']');
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -430,7 +430,7 @@ CreateNamedFontEntry(FT_Face aFace, const char* aFilename, uint8_t aIndex)
|
||||
nsAutoString fontName;
|
||||
AppendUTF8toUTF16(aFace->family_name, fontName);
|
||||
if (aFace->style_name && strcmp("Regular", aFace->style_name)) {
|
||||
fontName.AppendLiteral(" ");
|
||||
fontName.Append(' ');
|
||||
AppendUTF8toUTF16(aFace->style_name, fontName);
|
||||
}
|
||||
return FT2FontEntry::CreateFontEntry(aFace, aFilename, aIndex, fontName);
|
||||
|
@ -4864,7 +4864,7 @@ gfxFontGroup::ForEachFontInternal(const nsAString& aFamilies,
|
||||
|
||||
nsAutoCString prefName("font.name.");
|
||||
prefName.Append(lcFamily);
|
||||
prefName.AppendLiteral(".");
|
||||
prefName.Append('.');
|
||||
prefName.Append(groupString);
|
||||
|
||||
nsAdoptingString value = Preferences::GetString(prefName.get());
|
||||
@ -4924,7 +4924,7 @@ gfxFontGroup::ForEachFontInternal(const nsAString& aFamilies,
|
||||
if (generic && aResolveGeneric) {
|
||||
nsAutoCString prefName("font.name-list.");
|
||||
prefName.Append(lcFamily);
|
||||
prefName.AppendLiteral(".");
|
||||
prefName.Append('.');
|
||||
prefName.Append(groupString);
|
||||
nsAdoptingString value = Preferences::GetString(prefName.get());
|
||||
if (value) {
|
||||
|
@ -1066,7 +1066,7 @@ gfxFontUtils::GetFullNameFromTable(hb_blob_t *aNameTable,
|
||||
gfxFontUtils::NAME_ID_STYLE,
|
||||
styleName);
|
||||
if (NS_SUCCEEDED(rv) && !styleName.IsEmpty()) {
|
||||
name.AppendLiteral(" ");
|
||||
name.Append(' ');
|
||||
name.Append(styleName);
|
||||
aFullName = name;
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ gfxFcFontEntry::RealFaceName()
|
||||
NS_ConvertUTF8toUTF16 result((const char*)name);
|
||||
if (FcPatternGetString(mPatterns[0],
|
||||
FC_STYLE, 0, &name) == FcResultMatch) {
|
||||
result.AppendLiteral(" ");
|
||||
result.Append(' ');
|
||||
AppendUTF8toUTF16((const char*)name, result);
|
||||
}
|
||||
return result;
|
||||
@ -1815,7 +1815,7 @@ gfxFcFont::GetOrMakeFont(FcPattern *aRequestedPattern, FcPattern *aFontPattern,
|
||||
|
||||
AppendUTF8toUTF16(gfxFontconfigUtils::ToCString(fc_file), name);
|
||||
if (index != 0) {
|
||||
name.AppendLiteral("/");
|
||||
name.Append('/');
|
||||
name.AppendInt(index);
|
||||
}
|
||||
}
|
||||
|
@ -1179,7 +1179,7 @@ AppendGenericFontFromPref(nsString& aFonts, nsIAtom *aLangGroup, const char *aGe
|
||||
genericDotLang = Preferences::GetCString(prefName.get());
|
||||
}
|
||||
|
||||
genericDotLang.AppendLiteral(".");
|
||||
genericDotLang.Append('.');
|
||||
genericDotLang.Append(langGroupString);
|
||||
|
||||
// fetch font.name.xxx value
|
||||
@ -1229,7 +1229,7 @@ bool gfxPlatform::ForEachPrefFont(eFontPrefLang aLangArray[], uint32_t aLangArra
|
||||
prefName.Append(langGroup);
|
||||
nsAdoptingCString genericDotLang = Preferences::GetCString(prefName.get());
|
||||
|
||||
genericDotLang.AppendLiteral(".");
|
||||
genericDotLang.Append('.');
|
||||
genericDotLang.Append(langGroup);
|
||||
|
||||
// fetch font.name.xxx value
|
||||
|
@ -568,7 +568,7 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
|
||||
nsCString new_ld_lib_path;
|
||||
if (ld_library_path && *ld_library_path) {
|
||||
new_ld_lib_path.Assign(path.get());
|
||||
new_ld_lib_path.AppendLiteral(":");
|
||||
new_ld_lib_path.Append(':');
|
||||
new_ld_lib_path.Append(ld_library_path);
|
||||
newEnvVars["LD_LIBRARY_PATH"] = new_ld_lib_path.get();
|
||||
} else {
|
||||
@ -590,7 +590,7 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
|
||||
nsCString interpose;
|
||||
if (prevInterpose) {
|
||||
interpose.Assign(prevInterpose);
|
||||
interpose.AppendLiteral(":");
|
||||
interpose.Append(':');
|
||||
}
|
||||
interpose.Append(path.get());
|
||||
interpose.AppendLiteral("/libplugin_child_interpose.dylib");
|
||||
|
@ -306,7 +306,7 @@ ProcessOrDeferMessage(HWND hwnd,
|
||||
if (GetClassNameW(hwnd, className, sizeof(className) - 1) > 0) {
|
||||
log.AppendLiteral(" (\"");
|
||||
log.Append(NS_ConvertUTF16toUTF8((char16_t*)className));
|
||||
log.AppendLiteral("\")");
|
||||
log.Append('\')");
|
||||
}
|
||||
|
||||
log.AppendLiteral(", sending it to DefWindowProc instead of the normal "
|
||||
|
@ -1389,7 +1389,7 @@ mozJSComponentLoader::ImportInto(const nsACString &aLocation,
|
||||
JSAutoByteString bytes(mContext, JSID_TO_STRING(symbolId));
|
||||
if (!!bytes)
|
||||
logBuffer.Append(bytes.ptr());
|
||||
logBuffer.AppendLiteral(" ");
|
||||
logBuffer.Append(' ');
|
||||
if (i == symbolCount - 1) {
|
||||
LOG(("%s] from %s\n", logBuffer.get(),
|
||||
PromiseFlatCString(aLocation).get()));
|
||||
|
@ -1539,9 +1539,9 @@ AssembleSandboxMemoryReporterName(JSContext *cx, nsCString &sandboxName)
|
||||
|
||||
sandboxName.AppendLiteral(" (from: ");
|
||||
sandboxName.Append(NS_ConvertUTF16toUTF8(location));
|
||||
sandboxName.AppendLiteral(":");
|
||||
sandboxName.Append(':');
|
||||
sandboxName.AppendInt(lineNumber);
|
||||
sandboxName.AppendLiteral(")");
|
||||
sandboxName.Append(')');
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
@ -4712,7 +4712,7 @@ nsDisplayTransform::ShouldPrerenderTransformedContent(nsDisplayListBuilder* aBui
|
||||
message.AppendInt(nsPresContext::AppUnitsToIntCSSPixels(refSize.width));
|
||||
message.AppendLiteral(", ");
|
||||
message.AppendInt(nsPresContext::AppUnitsToIntCSSPixels(refSize.height));
|
||||
message.AppendLiteral(")");
|
||||
message.Append(')');
|
||||
CommonElementAnimationData::LogAsyncAnimationFailure(message,
|
||||
aFrame->GetContent());
|
||||
}
|
||||
|
@ -472,11 +472,11 @@ CommonElementAnimationData::LogAsyncAnimationFailure(nsCString& aMessage,
|
||||
if (id) {
|
||||
aMessage.AppendLiteral(" with id '");
|
||||
aMessage.Append(nsAtomCString(aContent->GetID()));
|
||||
aMessage.AppendLiteral("'");
|
||||
aMessage.Append('\'');
|
||||
}
|
||||
aMessage.AppendLiteral("]");
|
||||
aMessage.Append(']');
|
||||
}
|
||||
aMessage.AppendLiteral("\n");
|
||||
aMessage.Append('\n');
|
||||
printf_stderr(aMessage.get());
|
||||
}
|
||||
|
||||
|
@ -1068,10 +1068,10 @@ Declaration::GetValue(nsCSSProperty aProperty, nsAString& aValue,
|
||||
|
||||
} else if (unit == eCSSUnit_List || unit == eCSSUnit_ListDep) {
|
||||
// Non-empty <line-names>
|
||||
aValue.AppendLiteral("(");
|
||||
aValue.Append('(');
|
||||
rowsItem->mValue.AppendToString(eCSSProperty_grid_template_rows,
|
||||
aValue, aSerialization);
|
||||
aValue.AppendLiteral(")");
|
||||
aValue.Append(')');
|
||||
|
||||
} else {
|
||||
nsStyleUtil::AppendEscapedCSSString(areas->mTemplates[row++], aValue);
|
||||
|
@ -1456,7 +1456,7 @@ StyleRule::List(FILE* out, int32_t aIndent) const
|
||||
if (mSelector)
|
||||
mSelector->ToString(buffer, GetStyleSheet());
|
||||
|
||||
buffer.AppendLiteral(" ");
|
||||
buffer.Append(' ');
|
||||
fputs(NS_LossyConvertUTF16toASCII(buffer).get(), out);
|
||||
if (nullptr != mDeclaration) {
|
||||
mDeclaration->List(out);
|
||||
|
@ -352,7 +352,7 @@ ElementAnimations::CanPerformOnCompositorThread(CanAnimateFlags aFlags) const
|
||||
nsCString message;
|
||||
message.AppendLiteral("Gecko bug: Async animation of pseudoelements not supported. See bug 771367 (");
|
||||
message.Append(nsAtomCString(mElementProperty));
|
||||
message.AppendLiteral(")");
|
||||
message.Append(')');
|
||||
LogAsyncAnimationFailure(message, mElement);
|
||||
}
|
||||
return false;
|
||||
|
@ -433,11 +433,11 @@ ImportRule::GetCssText(nsAString& aCssText)
|
||||
nsAutoString mediaText;
|
||||
mMedia->GetText(mediaText);
|
||||
if (!mediaText.IsEmpty()) {
|
||||
aCssText.AppendLiteral(" ");
|
||||
aCssText.Append(' ');
|
||||
aCssText.Append(mediaText);
|
||||
}
|
||||
}
|
||||
aCssText.AppendLiteral(";");
|
||||
aCssText.Append(';');
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -693,7 +693,7 @@ GroupRule::AppendRulesToCssText(nsAString& aCssText)
|
||||
}
|
||||
}
|
||||
|
||||
aCssText.AppendLiteral("}");
|
||||
aCssText.Append('}');
|
||||
}
|
||||
|
||||
// nsIDOMCSSMediaRule or nsIDOMCSSMozDocumentRule methods
|
||||
@ -1376,12 +1376,12 @@ AppendSerializedFontSrc(const nsCSSValue& src, nsAString & aResult)
|
||||
aResult.AppendLiteral("url(");
|
||||
nsDependentString url(sources[i].GetOriginalURLValue());
|
||||
nsStyleUtil::AppendEscapedCSSString(url, aResult);
|
||||
aResult.AppendLiteral(")");
|
||||
aResult.Append(')');
|
||||
} else if (sources[i].GetUnit() == eCSSUnit_Local_Font) {
|
||||
aResult.AppendLiteral("local(");
|
||||
nsDependentString local(sources[i].GetStringBufferValue());
|
||||
nsStyleUtil::AppendEscapedCSSString(local, aResult);
|
||||
aResult.AppendLiteral(")");
|
||||
aResult.Append(')');
|
||||
} else {
|
||||
NS_NOTREACHED("entry in src: descriptor with improper unit");
|
||||
i++;
|
||||
@ -1961,18 +1961,18 @@ FeatureValuesToString(
|
||||
// for each ident-values tuple
|
||||
uint32_t j, numValues = fv.valuelist.Length();
|
||||
for (j = 0; j < numValues; j++) {
|
||||
aOutStr.AppendLiteral(" ");
|
||||
aOutStr.Append(' ');
|
||||
const gfxFontFeatureValueSet::ValueList& vlist = fv.valuelist[j];
|
||||
nsStyleUtil::AppendEscapedCSSIdent(vlist.name, aOutStr);
|
||||
aOutStr.AppendLiteral(":");
|
||||
aOutStr.Append(':');
|
||||
|
||||
uint32_t k, numSelectors = vlist.featureSelectors.Length();
|
||||
for (k = 0; k < numSelectors; k++) {
|
||||
aOutStr.AppendLiteral(" ");
|
||||
aOutStr.Append(' ');
|
||||
aOutStr.AppendInt(vlist.featureSelectors[k]);
|
||||
}
|
||||
|
||||
aOutStr.AppendLiteral(";");
|
||||
aOutStr.Append(';');
|
||||
}
|
||||
aOutStr.AppendLiteral(" }\n");
|
||||
}
|
||||
@ -1991,7 +1991,7 @@ FontFeatureValuesRuleToString(
|
||||
aOutStr.AppendLiteral(" {\n");
|
||||
FeatureValuesToString(aFeatureValues, valueTextStr);
|
||||
aOutStr.Append(valueTextStr);
|
||||
aOutStr.AppendLiteral("}");
|
||||
aOutStr.Append('}');
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
@ -2515,9 +2515,9 @@ nsCSSKeyframesRule::GetCssText(nsAString& aCssText)
|
||||
for (uint32_t i = 0, i_end = mRules.Count(); i != i_end; ++i) {
|
||||
static_cast<nsCSSKeyframeRule*>(mRules[i])->GetCssText(tmp);
|
||||
aCssText.Append(tmp);
|
||||
aCssText.AppendLiteral("\n");
|
||||
aCssText.Append('\n');
|
||||
}
|
||||
aCssText.AppendLiteral("}");
|
||||
aCssText.Append('}');
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -353,7 +353,7 @@ nsMediaQuery::AppendToString(nsAString& aString) const
|
||||
for (uint32_t i = 0, i_end = mExpressions.Length(); i < i_end; ++i) {
|
||||
if (i > 0 || !mTypeOmitted)
|
||||
aString.AppendLiteral(" and ");
|
||||
aString.AppendLiteral("(");
|
||||
aString.Append('(');
|
||||
|
||||
const nsMediaExpression &expr = mExpressions[i];
|
||||
if (expr.mRange == nsMediaExpression::eMin) {
|
||||
@ -406,7 +406,7 @@ nsMediaQuery::AppendToString(nsAString& aString) const
|
||||
"bad unit");
|
||||
array->Item(0).AppendToString(eCSSProperty_z_index, aString,
|
||||
nsCSSValue::eNormalized);
|
||||
aString.AppendLiteral("/");
|
||||
aString.Append('/');
|
||||
array->Item(1).AppendToString(eCSSProperty_z_index, aString,
|
||||
nsCSSValue::eNormalized);
|
||||
}
|
||||
@ -441,7 +441,7 @@ nsMediaQuery::AppendToString(nsAString& aString) const
|
||||
}
|
||||
}
|
||||
|
||||
aString.AppendLiteral(")");
|
||||
aString.Append(')');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -847,7 +847,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
if (mark && array->Item(i).GetUnit() != eCSSUnit_Null) {
|
||||
if (unit == eCSSUnit_Array &&
|
||||
eCSSProperty_transition_timing_function != aProperty)
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
else
|
||||
aResult.AppendLiteral(", ");
|
||||
}
|
||||
@ -877,7 +877,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
}
|
||||
if (eCSSUnit_Array == unit &&
|
||||
aProperty == eCSSProperty_transition_timing_function) {
|
||||
aResult.AppendLiteral(")");
|
||||
aResult.Append(')');
|
||||
}
|
||||
}
|
||||
/* Although Function is backed by an Array, we'll handle it separately
|
||||
@ -925,7 +925,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
} else {
|
||||
MOZ_ASSERT(false, "should no longer have non-enumerated functions");
|
||||
}
|
||||
aResult.AppendLiteral("(");
|
||||
aResult.Append('(');
|
||||
|
||||
/* Now, step through the function contents, writing each of them as we go. */
|
||||
for (size_t index = 1; index < array->Count(); ++index) {
|
||||
@ -938,7 +938,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
}
|
||||
|
||||
/* Finally, append the closing parenthesis. */
|
||||
aResult.AppendLiteral(")");
|
||||
aResult.Append(')');
|
||||
}
|
||||
else if (IsCalcUnit()) {
|
||||
NS_ABORT_IF_FALSE(GetUnit() == eCSSUnit_Calc, "unexpected unit");
|
||||
@ -1172,7 +1172,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
|
||||
if (gradient->GetRadialSize().GetUnit() != eCSSUnit_None) {
|
||||
if (needSep) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
}
|
||||
NS_ABORT_IF_FALSE(gradient->GetRadialSize().GetUnit() ==
|
||||
eCSSUnit_Enumerated,
|
||||
@ -1189,7 +1189,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
gradient->GetRadiusX().AppendToString(aProperty, aResult,
|
||||
aSerialization);
|
||||
if (gradient->GetRadiusY().GetUnit() != eCSSUnit_None) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
gradient->GetRadiusY().AppendToString(aProperty, aResult,
|
||||
aSerialization);
|
||||
}
|
||||
@ -1205,12 +1205,12 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
"unexpected unit");
|
||||
aResult.AppendLiteral("to");
|
||||
if (!(gradient->mBgPos.mXValue.GetIntValue() & NS_STYLE_BG_POSITION_CENTER)) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
gradient->mBgPos.mXValue.AppendToString(eCSSProperty_background_position,
|
||||
aResult, aSerialization);
|
||||
}
|
||||
if (!(gradient->mBgPos.mYValue.GetIntValue() & NS_STYLE_BG_POSITION_CENTER)) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
gradient->mBgPos.mYValue.AppendToString(eCSSProperty_background_position,
|
||||
aResult, aSerialization);
|
||||
}
|
||||
@ -1223,7 +1223,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
gradient->mBgPos.mYValue.GetUnit() != eCSSUnit_None ||
|
||||
gradient->mAngle.GetUnit() != eCSSUnit_None) {
|
||||
if (needSep) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
}
|
||||
if (gradient->mIsRadial && !gradient->mIsLegacySyntax) {
|
||||
aResult.AppendLiteral("at ");
|
||||
@ -1231,12 +1231,12 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
if (gradient->mBgPos.mXValue.GetUnit() != eCSSUnit_None) {
|
||||
gradient->mBgPos.mXValue.AppendToString(eCSSProperty_background_position,
|
||||
aResult, aSerialization);
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
}
|
||||
if (gradient->mBgPos.mXValue.GetUnit() != eCSSUnit_None) {
|
||||
gradient->mBgPos.mYValue.AppendToString(eCSSProperty_background_position,
|
||||
aResult, aSerialization);
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
}
|
||||
if (gradient->mAngle.GetUnit() != eCSSUnit_None) {
|
||||
NS_ABORT_IF_FALSE(gradient->mIsLegacySyntax,
|
||||
@ -1263,7 +1263,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
AppendASCIItoUTF16(nsCSSProps::ValueToKeyword(intValue,
|
||||
nsCSSProps::kRadialGradientShapeKTable),
|
||||
aResult);
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
}
|
||||
|
||||
if (gradient->GetRadialSize().GetUnit() != eCSSUnit_None) {
|
||||
@ -1285,7 +1285,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
gradient->mStops[i].mColor.AppendToString(aProperty, aResult,
|
||||
aSerialization);
|
||||
if (gradient->mStops[i].mLocation.GetUnit() != eCSSUnit_None) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
gradient->mStops[i].mLocation.AppendToString(aProperty, aResult,
|
||||
aSerialization);
|
||||
}
|
||||
@ -1295,7 +1295,7 @@ nsCSSValue::AppendToString(nsCSSProperty aProperty, nsAString& aResult,
|
||||
aResult.AppendLiteral(", ");
|
||||
}
|
||||
|
||||
aResult.AppendLiteral(")");
|
||||
aResult.Append(')');
|
||||
} else if (eCSSUnit_TokenStream == unit) {
|
||||
nsCSSProperty shorthand = mValue.mTokenStream->mShorthandPropertyID;
|
||||
if (shorthand == eCSSProperty_UNKNOWN ||
|
||||
@ -1695,10 +1695,10 @@ AppendGridTemplateToString(const nsCSSValueList* val,
|
||||
|
||||
} else if (unit == eCSSUnit_List || unit == eCSSUnit_ListDep) {
|
||||
// Non-empty <line-names>
|
||||
aResult.AppendLiteral("(");
|
||||
aResult.Append('(');
|
||||
AppendValueListToString(val->mValue.GetListValue(), aProperty,
|
||||
aResult, aSerialization);
|
||||
aResult.AppendLiteral(")");
|
||||
aResult.Append(')');
|
||||
|
||||
} else {
|
||||
// <track-size>
|
||||
|
@ -1796,7 +1796,7 @@ SetValueToCalc(const nsStyleCoord::Calc *aCalc, nsROCSSPrimitiveValue *aValue)
|
||||
result.Append(tmp);
|
||||
}
|
||||
|
||||
result.AppendLiteral(")");
|
||||
result.Append(')');
|
||||
|
||||
aValue->SetString(result); // not really SetString
|
||||
}
|
||||
@ -1883,7 +1883,7 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
|
||||
}
|
||||
if (aGradient->mSize != NS_STYLE_GRADIENT_SIZE_FARTHEST_CORNER) {
|
||||
if (needSep) {
|
||||
aString.AppendLiteral(" ");
|
||||
aString.Append(' ');
|
||||
}
|
||||
AppendASCIItoUTF16(nsCSSProps::
|
||||
ValueToKeyword(aGradient->mSize,
|
||||
@ -1894,7 +1894,7 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
|
||||
} else {
|
||||
AppendCSSGradientLength(aGradient->mRadiusX, tmpVal, aString);
|
||||
if (aGradient->mShape != NS_STYLE_GRADIENT_SHAPE_CIRCULAR) {
|
||||
aString.AppendLiteral(" ");
|
||||
aString.Append(' ');
|
||||
AppendCSSGradientLength(aGradient->mRadiusY, tmpVal, aString);
|
||||
}
|
||||
needSep = true;
|
||||
@ -1910,14 +1910,14 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
|
||||
aGradient->mBgPosY.GetPercentValue() != (isRadial ? 0.5f : 1.0f)) {
|
||||
if (isRadial && !aGradient->mLegacySyntax) {
|
||||
if (needSep) {
|
||||
aString.AppendLiteral(" ");
|
||||
aString.Append(' ');
|
||||
}
|
||||
aString.AppendLiteral("at ");
|
||||
needSep = false;
|
||||
}
|
||||
AppendCSSGradientLength(aGradient->mBgPosX, tmpVal, aString);
|
||||
if (aGradient->mBgPosY.GetUnit() != eStyleUnit_None) {
|
||||
aString.AppendLiteral(" ");
|
||||
aString.Append(' ');
|
||||
AppendCSSGradientLength(aGradient->mBgPosY, tmpVal, aString);
|
||||
}
|
||||
needSep = true;
|
||||
@ -1926,7 +1926,7 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
|
||||
if (aGradient->mAngle.GetUnit() != eStyleUnit_None) {
|
||||
MOZ_ASSERT(!isRadial || aGradient->mLegacySyntax);
|
||||
if (needSep) {
|
||||
aString.AppendLiteral(" ");
|
||||
aString.Append(' ');
|
||||
}
|
||||
nsStyleUtil::AppendAngleValue(aGradient->mAngle, aString);
|
||||
needSep = true;
|
||||
@ -1946,7 +1946,7 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
|
||||
}
|
||||
if (aGradient->mSize != NS_STYLE_GRADIENT_SIZE_FARTHEST_CORNER) {
|
||||
if (needSep) {
|
||||
aString.AppendLiteral(" ");
|
||||
aString.Append(' ');
|
||||
}
|
||||
AppendASCIItoUTF16(nsCSSProps::
|
||||
ValueToKeyword(aGradient->mSize,
|
||||
@ -1967,14 +1967,14 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
|
||||
aString.Append(tokenString);
|
||||
|
||||
if (aGradient->mStops[i].mLocation.GetUnit() != eStyleUnit_None) {
|
||||
aString.AppendLiteral(" ");
|
||||
aString.Append(' ');
|
||||
AppendCSSGradientLength(aGradient->mStops[i].mLocation, tmpVal, aString);
|
||||
}
|
||||
needSep = true;
|
||||
}
|
||||
|
||||
delete tmpVal;
|
||||
aString.AppendLiteral(")");
|
||||
aString.Append(')');
|
||||
}
|
||||
|
||||
// -moz-image-rect(<uri>, <top>, <right>, <bottom>, <left>)
|
||||
@ -2299,10 +2299,10 @@ nsComputedDOMStyle::GetGridLineNames(const nsTArray<nsString>& aLineNames)
|
||||
if (++i == i_end) {
|
||||
break;
|
||||
}
|
||||
lineNamesString.AppendLiteral(" ");
|
||||
lineNamesString.Append(' ');
|
||||
}
|
||||
}
|
||||
lineNamesString.AppendLiteral(")");
|
||||
lineNamesString.Append(')');
|
||||
val->SetString(lineNamesString);
|
||||
return val;
|
||||
}
|
||||
@ -5167,7 +5167,7 @@ nsComputedDOMStyle::CreatePrimitiveValueForStyleFilter(
|
||||
nsCSSProps::ValueToKeyword(aStyleFilter.GetType(),
|
||||
nsCSSProps::kFilterFunctionKTable),
|
||||
filterFunctionString);
|
||||
filterFunctionString.AppendLiteral("(");
|
||||
filterFunctionString.Append('(');
|
||||
|
||||
nsAutoString argumentString;
|
||||
if (aStyleFilter.GetType() == NS_STYLE_FILTER_DROP_SHADOW) {
|
||||
@ -5185,7 +5185,7 @@ nsComputedDOMStyle::CreatePrimitiveValueForStyleFilter(
|
||||
filterFunctionString.Append(argumentString);
|
||||
|
||||
// Filter function closing parenthesis.
|
||||
filterFunctionString.AppendLiteral(")");
|
||||
filterFunctionString.Append(')');
|
||||
|
||||
value->SetString(filterFunctionString);
|
||||
return value;
|
||||
@ -5340,7 +5340,7 @@ nsComputedDOMStyle::AppendTimingFunction(nsDOMCSSValueList *aValueList,
|
||||
tmp.AppendFloat(aTimingFunction.mFunc.mX2);
|
||||
tmp.AppendLiteral(", ");
|
||||
tmp.AppendFloat(aTimingFunction.mFunc.mY2);
|
||||
tmp.AppendLiteral(")");
|
||||
tmp.Append(')');
|
||||
} else {
|
||||
tmp.AppendLiteral("steps(");
|
||||
tmp.AppendInt(aTimingFunction.mSteps);
|
||||
|
@ -107,7 +107,7 @@ nsROCSSPrimitiveValue::GetCssText(nsAString& aCssText)
|
||||
tmpStr.AssignLiteral("url(");
|
||||
nsStyleUtil::AppendEscapedCSSString(NS_ConvertUTF8toUTF16(specUTF8),
|
||||
tmpStr);
|
||||
tmpStr.AppendLiteral(")");
|
||||
tmpStr.Append(')');
|
||||
} else {
|
||||
// http://dev.w3.org/csswg/css3-values/#attr defines
|
||||
// 'about:invalid' as the default value for url attributes,
|
||||
@ -254,7 +254,7 @@ nsROCSSPrimitiveValue::GetCssText(nsAString& aCssText)
|
||||
case CSS_S :
|
||||
{
|
||||
nsStyleUtil::AppendCSSNumber(mValue.mFloat, tmpStr);
|
||||
tmpStr.AppendLiteral("s");
|
||||
tmpStr.Append('s');
|
||||
break;
|
||||
}
|
||||
case CSS_CM :
|
||||
|
@ -219,7 +219,7 @@ nsStyleUtil::AppendPaintOrderValue(uint8_t aValue,
|
||||
|
||||
for (uint32_t position = 0; position <= lastPositionToSerialize; position++) {
|
||||
if (position > 0) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
}
|
||||
uint8_t component = aValue & MASK;
|
||||
switch (component) {
|
||||
@ -269,7 +269,7 @@ nsStyleUtil::AppendFontFeatureSettings(const nsTArray<gfxFontFeature>& aFeatures
|
||||
// 0 ==> off
|
||||
aResult.AppendLiteral(" off");
|
||||
} else if (feat.mValue > 1) {
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
aResult.AppendInt(feat.mValue);
|
||||
}
|
||||
// else, omit value if 1, implied by default
|
||||
|
@ -60,7 +60,7 @@ nsBox::ListBox(nsAutoString& aResult)
|
||||
|
||||
aResult.AppendASCII(addr);
|
||||
aResult.Append(name);
|
||||
aResult.AppendLiteral(" ");
|
||||
aResult.Append(' ');
|
||||
|
||||
nsIContent* content = GetContent();
|
||||
|
||||
|
@ -555,7 +555,7 @@ nsTreeContentView::CycleHeader(nsITreeColumn* aCol)
|
||||
|
||||
nsAutoString hints;
|
||||
column->GetAttr(kNameSpaceID_None, nsGkAtoms::sorthints, hints);
|
||||
sortdirection.AppendLiteral(" ");
|
||||
sortdirection.Append(' ');
|
||||
sortdirection += hints;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> rootnode = do_QueryInterface(mRoot);
|
||||
|
@ -920,7 +920,7 @@ ExtractOrigin(nsIURI *uri, nsAutoCString &s)
|
||||
s.AppendLiteral("://");
|
||||
s.Append(host);
|
||||
if (port != -1) {
|
||||
s.AppendLiteral(":");
|
||||
s.Append(':');
|
||||
s.AppendInt(port);
|
||||
}
|
||||
}
|
||||
|
2
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
2
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
@ -194,7 +194,7 @@ nsOfflineCacheEvictionFunction::OnFunctionCall(mozIStorageValueArray *values, ns
|
||||
const char *clientID = values->AsSharedUTF8String(0, &valueLen);
|
||||
const char *key = values->AsSharedUTF8String(1, &valueLen);
|
||||
nsAutoCString fullKey(clientID);
|
||||
fullKey.AppendLiteral(":");
|
||||
fullKey.Append(':');
|
||||
fullKey.Append(key);
|
||||
int generation = values->AsInt32(2);
|
||||
|
||||
|
@ -678,7 +678,7 @@ mozTXTToHTMLConv::StructPhraseHit(const char16_t * aInString, int32_t aInStringL
|
||||
)
|
||||
{
|
||||
openTags++;
|
||||
aOutString.AppendLiteral("<");
|
||||
aOutString.Append('<');
|
||||
aOutString.AppendASCII(tagHTML);
|
||||
aOutString.Append(char16_t(' '));
|
||||
aOutString.AppendASCII(attributeHTML);
|
||||
|
@ -795,7 +795,7 @@ nsIndexedToHTML::OnIndexAvailable(nsIRequest *aRequest,
|
||||
pushBuffer.AppendLiteral("</a></td></tr></tbody></table></td>\n <td");
|
||||
|
||||
if (type == nsIDirIndex::TYPE_DIRECTORY || type == nsIDirIndex::TYPE_SYMLINK) {
|
||||
pushBuffer.AppendLiteral(">");
|
||||
pushBuffer.Append('>');
|
||||
} else {
|
||||
int64_t size;
|
||||
aIndex->GetSize(&size);
|
||||
@ -808,7 +808,7 @@ nsIndexedToHTML::OnIndexAvailable(nsIRequest *aRequest,
|
||||
FormatSizeString(size, sizeString);
|
||||
pushBuffer.Append(sizeString);
|
||||
} else {
|
||||
pushBuffer.AppendLiteral(">");
|
||||
pushBuffer.Append('>');
|
||||
}
|
||||
}
|
||||
pushBuffer.AppendLiteral("</td>\n <td");
|
||||
|
@ -1328,9 +1328,9 @@ nsParser::ParseFragment(const nsAString& aSourceBuffer,
|
||||
mFlags &= ~NS_PARSER_FLAG_OBSERVERS_ENABLED;
|
||||
|
||||
for (theIndex = 0; theIndex < theCount; theIndex++) {
|
||||
theContext.AppendLiteral("<");
|
||||
theContext.Append('<');
|
||||
theContext.Append(aTagStack[theCount - theIndex - 1]);
|
||||
theContext.AppendLiteral(">");
|
||||
theContext.Append('>');
|
||||
}
|
||||
|
||||
if (theCount == 0) {
|
||||
@ -1392,7 +1392,7 @@ nsParser::ParseFragment(const nsAString& aSourceBuffer,
|
||||
endContext.Append(Substring(thisTag,0,endOfTag));
|
||||
}
|
||||
|
||||
endContext.AppendLiteral(">");
|
||||
endContext.Append('>');
|
||||
}
|
||||
|
||||
result = Parse(endContext,
|
||||
|
@ -405,7 +405,7 @@ CertErrorRunnable::CheckCertOverrides()
|
||||
|
||||
nsCString hostWithPortString;
|
||||
hostWithPortString.AppendASCII(mInfoObject->GetHostNameRaw());
|
||||
hostWithPortString.AppendLiteral(":");
|
||||
hostWithPortString.Append(':');
|
||||
hostWithPortString.AppendInt(port);
|
||||
|
||||
uint32_t remaining_display_errors = mCollectedErrors;
|
||||
|
@ -578,7 +578,7 @@ formatPlainErrorMessage(const nsXPIDLCString &host, int32_t port,
|
||||
|
||||
hostWithPort.AssignASCII(host);
|
||||
if (!suppressPort443 || port != 443) {
|
||||
hostWithPort.AppendLiteral(":");
|
||||
hostWithPort.Append(':');
|
||||
hostWithPort.AppendInt(port);
|
||||
}
|
||||
params[0] = hostWithPort.get();
|
||||
|
@ -862,7 +862,7 @@ nsCertOverrideService::GetHostWithPort(const nsACString & aHostName, int32_t aPo
|
||||
aPort = 443;
|
||||
}
|
||||
if (!hostPort.IsEmpty()) {
|
||||
hostPort.AppendLiteral(":");
|
||||
hostPort.Append(':');
|
||||
hostPort.AppendInt(aPort);
|
||||
}
|
||||
_retval.Assign(hostPort);
|
||||
|
@ -205,7 +205,7 @@ nsClientAuthRememberService::GetHostWithCert(const nsACString & aHostName,
|
||||
nsACString& _retval)
|
||||
{
|
||||
nsAutoCString hostCert(aHostName);
|
||||
hostCert.AppendLiteral(":");
|
||||
hostCert.Append(':');
|
||||
hostCert.Append(fingerprint);
|
||||
|
||||
_retval.Assign(hostCert);
|
||||
|
@ -225,7 +225,7 @@ SECStatus nsNSSHttpRequestSession::createFcn(SEC_HTTP_SERVER_SESSION session,
|
||||
rs->mURL.Assign(http_protocol_variant);
|
||||
rs->mURL.AppendLiteral("://");
|
||||
rs->mURL.Append(hss->mHost);
|
||||
rs->mURL.AppendLiteral(":");
|
||||
rs->mURL.Append(':');
|
||||
rs->mURL.AppendInt(hss->mPort);
|
||||
rs->mURL.Append(path_and_query_string);
|
||||
|
||||
|
@ -1353,7 +1353,7 @@ nsNSSCertificate::GetUsagesString(bool localOnly, uint32_t* _verified,
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
_usages.Truncate();
|
||||
for (uint32_t i=0; i<tmpCount; i++) {
|
||||
if (i>0) _usages.AppendLiteral(",");
|
||||
if (i>0) _usages.Append(',');
|
||||
_usages.Append(tmpUsages[i]);
|
||||
nsMemory::Free(tmpUsages[i]);
|
||||
}
|
||||
|
@ -2083,14 +2083,14 @@ ClientAuthDataRunnable::RunOnTargetThread()
|
||||
nsString cn_host_port;
|
||||
if (ccn && strcmp(ccn, hostname) == 0) {
|
||||
cn_host_port.Append(cn);
|
||||
cn_host_port.AppendLiteral(":");
|
||||
cn_host_port.Append(':');
|
||||
cn_host_port.AppendInt(port);
|
||||
} else {
|
||||
cn_host_port.Append(cn);
|
||||
cn_host_port.AppendLiteral(" (");
|
||||
cn_host_port.AppendLiteral(":");
|
||||
cn_host_port.Append(':');
|
||||
cn_host_port.AppendInt(port);
|
||||
cn_host_port.AppendLiteral(")");
|
||||
cn_host_port.Append(')');
|
||||
}
|
||||
|
||||
char* corg = CERT_GetOrgName(&mServerCert->subject);
|
||||
|
@ -63,11 +63,11 @@ nsPK11Token::refreshTokenInfo()
|
||||
|
||||
// Set the Hardware Version field
|
||||
mTokenHWVersion.AppendInt(tok_info.hardwareVersion.major);
|
||||
mTokenHWVersion.AppendLiteral(".");
|
||||
mTokenHWVersion.Append('.');
|
||||
mTokenHWVersion.AppendInt(tok_info.hardwareVersion.minor);
|
||||
// Set the Firmware Version field
|
||||
mTokenFWVersion.AppendInt(tok_info.firmwareVersion.major);
|
||||
mTokenFWVersion.AppendLiteral(".");
|
||||
mTokenFWVersion.Append('.');
|
||||
mTokenFWVersion.AppendInt(tok_info.firmwareVersion.minor);
|
||||
// Set the Serial Number field
|
||||
const char *ccSerial = (const char*)tok_info.serialNumber;
|
||||
|
@ -53,12 +53,12 @@ nsPKCS11Slot::refreshSlotInfo()
|
||||
// Set the Hardware Version field
|
||||
mSlotHWVersion = EmptyString();
|
||||
mSlotHWVersion.AppendInt(slot_info.hardwareVersion.major);
|
||||
mSlotHWVersion.AppendLiteral(".");
|
||||
mSlotHWVersion.Append('.');
|
||||
mSlotHWVersion.AppendInt(slot_info.hardwareVersion.minor);
|
||||
// Set the Firmware Version field
|
||||
mSlotFWVersion = EmptyString();
|
||||
mSlotFWVersion.AppendInt(slot_info.firmwareVersion.major);
|
||||
mSlotFWVersion.AppendLiteral(".");
|
||||
mSlotFWVersion.Append('.');
|
||||
mSlotFWVersion.AppendInt(slot_info.firmwareVersion.minor);
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ BaseCallback::HandleError(mozIStorageError *aError)
|
||||
nsAutoCString warnMsg;
|
||||
warnMsg.AppendLiteral("An error occured during async execution: ");
|
||||
warnMsg.AppendInt(result);
|
||||
warnMsg.AppendLiteral(" ");
|
||||
warnMsg.Append(' ');
|
||||
warnMsg.Append(message);
|
||||
NS_WARNING(warnMsg.get());
|
||||
#endif
|
||||
@ -241,7 +241,7 @@ Vacuumer::HandleError(mozIStorageError *aError)
|
||||
warnMsg.Append(mDBFilename);
|
||||
warnMsg.AppendLiteral(" - ");
|
||||
warnMsg.AppendInt(result);
|
||||
warnMsg.AppendLiteral(" ");
|
||||
warnMsg.Append(' ');
|
||||
warnMsg.Append(message);
|
||||
NS_WARNING(warnMsg.get());
|
||||
#endif
|
||||
|
@ -144,7 +144,7 @@ Service::CollectReports(nsIHandleReportCallback *aHandleReport,
|
||||
|
||||
nsCString pathHead("explicit/storage/sqlite/");
|
||||
pathHead.Append(conn->getFilename());
|
||||
pathHead.AppendLiteral("/");
|
||||
pathHead.Append('/');
|
||||
|
||||
SQLiteMutexAutoLock lockedScope(conn->sharedDBMutex);
|
||||
|
||||
|
@ -1640,7 +1640,7 @@ static PLDHashOperator ListToBeRemovedPlaceIds(PlaceHashKey* aEntry,
|
||||
if (visits.Length() == aEntry->visitCount && !aEntry->bookmarked) {
|
||||
nsCString* list = static_cast<nsCString*>(aIdsList);
|
||||
if (!list->IsEmpty())
|
||||
list->AppendLiteral(",");
|
||||
list->Append(',');
|
||||
list->AppendInt(visits[0].placeId);
|
||||
}
|
||||
return PL_DHASH_NEXT;
|
||||
@ -1844,7 +1844,7 @@ private:
|
||||
nsCString query("DELETE FROM moz_places "
|
||||
"WHERE id IN (");
|
||||
query.Append(placeIdsToRemove);
|
||||
query.AppendLiteral(")");
|
||||
query.Append(')');
|
||||
|
||||
nsCOMPtr<mozIStorageStatement> stmt = mHistory->GetStatement(query);
|
||||
NS_ENSURE_STATE(stmt);
|
||||
|
@ -1174,7 +1174,7 @@ nsNavBookmarks::RemoveFolderChildren(int64_t aFolderId)
|
||||
BookmarkData& child = folderChildrenArray[i];
|
||||
|
||||
if (child.type == TYPE_FOLDER) {
|
||||
foldersToRemove.AppendLiteral(",");
|
||||
foldersToRemove.Append(',');
|
||||
foldersToRemove.AppendInt(child.id);
|
||||
}
|
||||
|
||||
|
@ -1038,7 +1038,7 @@ nsNavHistory::invalidateFrecencies(const nsCString& aPlaceIdsQueryString)
|
||||
if (!aPlaceIdsQueryString.IsEmpty()) {
|
||||
invalidFrecenciesSQLFragment.AppendLiteral("AND id IN(");
|
||||
invalidFrecenciesSQLFragment.Append(aPlaceIdsQueryString);
|
||||
invalidFrecenciesSQLFragment.AppendLiteral(")");
|
||||
invalidFrecenciesSQLFragment.Append(')');
|
||||
}
|
||||
nsRefPtr<InvalidateAllFrecenciesCallback> cb =
|
||||
aPlaceIdsQueryString.IsEmpty() ? new InvalidateAllFrecenciesCallback()
|
||||
@ -2049,7 +2049,7 @@ PlacesSQLQueryBuilder::Limit()
|
||||
if (mUseLimit && mMaxResults > 0) {
|
||||
mQueryString += NS_LITERAL_CSTRING(" LIMIT ");
|
||||
mQueryString.AppendInt(mMaxResults);
|
||||
mQueryString.AppendLiteral(" ");
|
||||
mQueryString.Append(' ');
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
@ -2404,7 +2404,7 @@ nsNavHistory::CleanupPlacesOnVisitsDelete(const nsCString& aPlaceIdsQueryString)
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (wholeEntry) {
|
||||
if (!filteredPlaceIds.IsEmpty()) {
|
||||
filteredPlaceIds.AppendLiteral(",");
|
||||
filteredPlaceIds.Append(',');
|
||||
}
|
||||
filteredPlaceIds.AppendInt(placeId);
|
||||
URIs.AppendObject(uri);
|
||||
@ -2469,7 +2469,7 @@ nsNavHistory::RemovePages(nsIURI **aURIs, uint32_t aLength)
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (placeId != 0) {
|
||||
if (!deletePlaceIdsQueryString.IsEmpty())
|
||||
deletePlaceIdsQueryString.AppendLiteral(",");
|
||||
deletePlaceIdsQueryString.Append(',');
|
||||
deletePlaceIdsQueryString.AppendInt(placeId);
|
||||
}
|
||||
}
|
||||
@ -2589,7 +2589,7 @@ nsNavHistory::RemovePagesFromHost(const nsACString& aHost, bool aEntireDomain)
|
||||
bool hasMore = false;
|
||||
while (NS_SUCCEEDED(statement->ExecuteStep(&hasMore)) && hasMore) {
|
||||
if (!hostPlaceIds.IsEmpty())
|
||||
hostPlaceIds.AppendLiteral(",");
|
||||
hostPlaceIds.Append(',');
|
||||
int64_t placeId;
|
||||
rv = statement->GetInt64(0, &placeId);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
@ -2649,7 +2649,7 @@ nsNavHistory::RemovePagesByTimeframe(PRTime aBeginTime, PRTime aEndTime)
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (placeId != 0) {
|
||||
if (!deletePlaceIdsQueryString.IsEmpty())
|
||||
deletePlaceIdsQueryString.AppendLiteral(",");
|
||||
deletePlaceIdsQueryString.Append(',');
|
||||
deletePlaceIdsQueryString.AppendInt(placeId);
|
||||
}
|
||||
}
|
||||
@ -2717,7 +2717,7 @@ nsNavHistory::RemoveVisitsByTimeframe(PRTime aBeginTime, PRTime aEndTime)
|
||||
// placeId should not be <= 0, but be defensive.
|
||||
if (placeId > 0) {
|
||||
if (!deletePlaceIdsQueryString.IsEmpty())
|
||||
deletePlaceIdsQueryString.AppendLiteral(",");
|
||||
deletePlaceIdsQueryString.Append(',');
|
||||
deletePlaceIdsQueryString.AppendInt(placeId);
|
||||
}
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ IntelPowerGadget::Init()
|
||||
nsCString ipg_library;
|
||||
if (path && *path) {
|
||||
ipg_library.Append(path);
|
||||
ipg_library.AppendLiteral("/");
|
||||
ipg_library.Append('/');
|
||||
ipg_library.AppendLiteral(PG_LIBRARY_NAME);
|
||||
libpowergadget = PR_LoadLibrary(ipg_library.get());
|
||||
}
|
||||
|
@ -282,7 +282,7 @@ static void CleanupHandlerPath(nsString& aPath)
|
||||
if (lastCommaPos != kNotFound)
|
||||
aPath.Truncate(lastCommaPos);
|
||||
|
||||
aPath.AppendLiteral(" ");
|
||||
aPath.Append(' ');
|
||||
|
||||
// case insensitive
|
||||
uint32_t index = aPath.Find(".exe ", true);
|
||||
|
@ -202,7 +202,7 @@ GetFindFlagName(DWORD aFindFlag)
|
||||
if (description.IsEmpty()) {
|
||||
description.AppendLiteral("Unknown (");
|
||||
description.AppendInt(static_cast<uint32_t>(aFindFlag));
|
||||
description.AppendLiteral(")");
|
||||
description.Append(')');
|
||||
}
|
||||
return description;
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ GfxInfo::GetData()
|
||||
if (bytesread) {
|
||||
mAdapterDescription.AppendLiteral(": ");
|
||||
mAdapterDescription.Append(nsDependentCString(buf));
|
||||
mAdapterDescription.AppendLiteral("\n");
|
||||
mAdapterDescription.Append('\n');
|
||||
}
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
CrashReporter::AppendAppNotesToCrashReport(mAdapterDescription);
|
||||
|
@ -158,7 +158,7 @@ nsPrintOptions::GetPrefName(const char * aPrefName,
|
||||
if (aPrinterName.Length()) {
|
||||
mPrefName.AppendLiteral("printer_");
|
||||
AppendUTF16toUTF8(aPrinterName, mPrefName);
|
||||
mPrefName.AppendLiteral(".");
|
||||
mPrefName.Append('.');
|
||||
}
|
||||
mPrefName += aPrefName;
|
||||
|
||||
|
@ -210,7 +210,7 @@ nsConsoleService::LogMessageWithMode(nsIConsoleMessage* aMessage,
|
||||
if (IsDebuggerPresent()) {
|
||||
nsString msg;
|
||||
aMessage->GetMessageMoz(getter_Copies(msg));
|
||||
msg.AppendLiteral("\n");
|
||||
msg.Append('\n');
|
||||
OutputDebugStringW(msg.get());
|
||||
}
|
||||
#endif
|
||||
|
@ -151,7 +151,7 @@ nsStatusReporterManager::DumpReports()
|
||||
|
||||
nsCString filename("status-reports-");
|
||||
filename.AppendInt(getpid());
|
||||
filename.AppendLiteral("-");
|
||||
filename.Append('-');
|
||||
filename.AppendInt(number++);
|
||||
filename.AppendLiteral(".json");
|
||||
|
||||
|
@ -683,7 +683,7 @@ InitLog(const char* aEnvVar, const char* aMsg, FILE** aResult)
|
||||
if (hasLogExtension) {
|
||||
fname.Cut(fname.Length() - 4, 4);
|
||||
}
|
||||
fname.AppendLiteral("_");
|
||||
fname.Append('_');
|
||||
fname.Append((char*)XRE_ChildProcessTypeToString(XRE_GetProcessType()));
|
||||
fname.AppendLiteral("_pid");
|
||||
fname.AppendInt((uint32_t)getpid());
|
||||
|
Loading…
Reference in New Issue
Block a user