зеркало из https://github.com/mozilla/pjs.git
add static to reduce compiler warnings on Macintosh
This commit is contained in:
Родитель
a0e781f91e
Коммит
9d62c2b952
|
@ -58,6 +58,7 @@ ImageSystemServicesImpl::~ImageSystemServicesImpl()
|
|||
|
||||
NS_IMPL_ISUPPORTS(ImageSystemServicesImpl, kISystemServicesIID)
|
||||
|
||||
static
|
||||
void
|
||||
timer_callback (nsITimer *aTimer, void *aClosure)
|
||||
{
|
||||
|
|
|
@ -199,6 +199,7 @@ PRBool CStartToken::IsEmpty(void) {
|
|||
return mEmpty;
|
||||
}
|
||||
|
||||
static
|
||||
nsString& GetIdentChars(void) {
|
||||
static nsString gIdentChars("-0123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz");
|
||||
return gIdentChars;
|
||||
|
@ -609,6 +610,7 @@ CCommentToken::CCommentToken(const nsString& aName) : CHTMLToken(aName) {
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
static
|
||||
nsresult ConsumeStrictComment(PRUnichar aChar, nsScanner& aScanner,nsString& aString) {
|
||||
static nsAutoString gMinus("-");
|
||||
nsresult result=NS_OK;
|
||||
|
@ -677,6 +679,7 @@ nsresult ConsumeStrictComment(PRUnichar aChar, nsScanner& aScanner,nsString& aSt
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
static
|
||||
nsresult ConsumeComment(PRUnichar aChar, nsScanner& aScanner,nsString& aString) {
|
||||
static nsAutoString gEdibles("!-");
|
||||
static nsAutoString gMinus("-");
|
||||
|
@ -991,6 +994,7 @@ nsresult ConsumeQuotedString(PRUnichar aChar,nsString& aString,nsScanner& aScann
|
|||
* @param aScanner -- controller of underlying input source
|
||||
* @return error result
|
||||
*/
|
||||
static
|
||||
nsresult ConsumeAttributeValueText(PRUnichar,nsString& aString,nsScanner& aScanner){
|
||||
static nsAutoString terminals("\b\t\n\r >");
|
||||
nsresult result=aScanner.ReadUntil(aString,terminals,PR_FALSE,PR_FALSE);
|
||||
|
|
|
@ -229,6 +229,7 @@ nsFieldSetFrame::Paint(nsIPresContext& aPresContext,
|
|||
|
||||
// XXX a hack until the reflow state does this correctly
|
||||
// XXX when it gets fixed, leave in the printf statements or add an assertion
|
||||
static
|
||||
void FieldSetHack(nsHTMLReflowState& aReflowState, char* aMessage, PRBool aUseMax)
|
||||
{
|
||||
if (aReflowState.computedWidth == 0) {
|
||||
|
|
|
@ -229,6 +229,7 @@ nsFieldSetFrame::Paint(nsIPresContext& aPresContext,
|
|||
|
||||
// XXX a hack until the reflow state does this correctly
|
||||
// XXX when it gets fixed, leave in the printf statements or add an assertion
|
||||
static
|
||||
void FieldSetHack(nsHTMLReflowState& aReflowState, char* aMessage, PRBool aUseMax)
|
||||
{
|
||||
if (aReflowState.computedWidth == 0) {
|
||||
|
|
|
@ -385,6 +385,7 @@ nsLabelFrame::Paint(nsIPresContext& aPresContext,
|
|||
|
||||
// XXX a hack until the reflow state does this correctly
|
||||
// XXX when it gets fixed, leave in the printf statements or add an assertion
|
||||
static
|
||||
void LabelHack(nsHTMLReflowState& aReflowState, char* aMessage)
|
||||
{
|
||||
if (aReflowState.computedWidth == 0) {
|
||||
|
|
|
@ -199,6 +199,7 @@ PRBool CStartToken::IsEmpty(void) {
|
|||
return mEmpty;
|
||||
}
|
||||
|
||||
static
|
||||
nsString& GetIdentChars(void) {
|
||||
static nsString gIdentChars("-0123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz");
|
||||
return gIdentChars;
|
||||
|
@ -609,6 +610,7 @@ CCommentToken::CCommentToken(const nsString& aName) : CHTMLToken(aName) {
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
static
|
||||
nsresult ConsumeStrictComment(PRUnichar aChar, nsScanner& aScanner,nsString& aString) {
|
||||
static nsAutoString gMinus("-");
|
||||
nsresult result=NS_OK;
|
||||
|
@ -677,6 +679,7 @@ nsresult ConsumeStrictComment(PRUnichar aChar, nsScanner& aScanner,nsString& aSt
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
static
|
||||
nsresult ConsumeComment(PRUnichar aChar, nsScanner& aScanner,nsString& aString) {
|
||||
static nsAutoString gEdibles("!-");
|
||||
static nsAutoString gMinus("-");
|
||||
|
@ -991,6 +994,7 @@ nsresult ConsumeQuotedString(PRUnichar aChar,nsString& aString,nsScanner& aScann
|
|||
* @param aScanner -- controller of underlying input source
|
||||
* @return error result
|
||||
*/
|
||||
static
|
||||
nsresult ConsumeAttributeValueText(PRUnichar,nsString& aString,nsScanner& aScanner){
|
||||
static nsAutoString terminals("\b\t\n\r >");
|
||||
nsresult result=aScanner.ReadUntil(aString,terminals,PR_FALSE,PR_FALSE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче