зеркало из https://github.com/mozilla/gecko-dev.git
OK, over from snprintf to PR_snprintf. b=173837
This commit is contained in:
Родитель
17ce8bf5d5
Коммит
3ad435a24c
|
@ -38,8 +38,6 @@
|
|||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "nsICSSParser.h"
|
||||
#include "nsCSSProps.h"
|
||||
#include "nsCSSKeywords.h"
|
||||
|
@ -70,6 +68,8 @@
|
|||
#include "nsINameSpace.h"
|
||||
#include "nsThemeConstants.h"
|
||||
|
||||
#include "prprf.h"
|
||||
|
||||
// XXX TODO:
|
||||
// - rework aErrorCode stuff: switch over to nsresult
|
||||
// verify ! is followed by important and nothing else
|
||||
|
@ -2579,14 +2579,14 @@ PRBool CSSParserImpl::ParseColor(PRInt32& aErrorCode, nsCSSValue& aValue)
|
|||
|
||||
case eCSSToken_Number:
|
||||
if (tk->mIntegerValid) {
|
||||
snprintf(buffer, sizeof(buffer), "%06d", tk->mInteger);
|
||||
PR_snprintf(buffer, sizeof(buffer), "%06d", tk->mInteger);
|
||||
str.AssignWithConversion(buffer);
|
||||
}
|
||||
break;
|
||||
|
||||
case eCSSToken_Dimension:
|
||||
if (tk->mIdent.Length() <= 6) {
|
||||
snprintf(buffer, sizeof(buffer), "%06.0f", tk->mNumber);
|
||||
PR_snprintf(buffer, sizeof(buffer), "%06.0f", tk->mNumber);
|
||||
nsAutoString temp;
|
||||
temp.AssignWithConversion(buffer);
|
||||
temp.Right(str, 6 - tk->mIdent.Length());
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "nsICSSParser.h"
|
||||
#include "nsCSSProps.h"
|
||||
#include "nsCSSKeywords.h"
|
||||
|
@ -70,6 +68,8 @@
|
|||
#include "nsINameSpace.h"
|
||||
#include "nsThemeConstants.h"
|
||||
|
||||
#include "prprf.h"
|
||||
|
||||
// XXX TODO:
|
||||
// - rework aErrorCode stuff: switch over to nsresult
|
||||
// verify ! is followed by important and nothing else
|
||||
|
@ -2579,14 +2579,14 @@ PRBool CSSParserImpl::ParseColor(PRInt32& aErrorCode, nsCSSValue& aValue)
|
|||
|
||||
case eCSSToken_Number:
|
||||
if (tk->mIntegerValid) {
|
||||
snprintf(buffer, sizeof(buffer), "%06d", tk->mInteger);
|
||||
PR_snprintf(buffer, sizeof(buffer), "%06d", tk->mInteger);
|
||||
str.AssignWithConversion(buffer);
|
||||
}
|
||||
break;
|
||||
|
||||
case eCSSToken_Dimension:
|
||||
if (tk->mIdent.Length() <= 6) {
|
||||
snprintf(buffer, sizeof(buffer), "%06.0f", tk->mNumber);
|
||||
PR_snprintf(buffer, sizeof(buffer), "%06.0f", tk->mNumber);
|
||||
nsAutoString temp;
|
||||
temp.AssignWithConversion(buffer);
|
||||
temp.Right(str, 6 - tk->mIdent.Length());
|
||||
|
|
Загрузка…
Ссылка в новой задаче