more WIP to remove nsStr references

git-svn-id: svn://10.0.0.236/trunk@62712 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-03-12 10:07:57 +00:00
parent 8a2887eab8
commit 9ababa1a41
14 changed files with 69 additions and 22 deletions

View File

@@ -24,7 +24,7 @@
#include "nslayout.h"
struct nsStr;
class nsString;
class nsCString;
/*
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a keyword string, return the enum value
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
// Given a keyword enum, get the string value
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);

View File

@@ -24,8 +24,8 @@
#include "nslayout.h"
struct nsStr;
class nsCString;
class nsString;
/*
Declare the enum list using the magic of preprocessing
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a property string, return the enum value
static nsCSSProperty LookupProperty(const nsStr& aProperty);
static nsCSSProperty LookupProperty(const nsString& aProperty);
static nsCSSProperty LookupProperty(const nsCString& aProperty);
// Given a property enum, get the string value
static const nsCString& GetStringValue(nsCSSProperty aProperty);

View File

@@ -24,7 +24,7 @@
#include "nslayout.h"
struct nsStr;
class nsString;
class nsCString;
/*
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a keyword string, return the enum value
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
// Given a keyword enum, get the string value
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);

View File

@@ -24,8 +24,8 @@
#include "nslayout.h"
struct nsStr;
class nsCString;
class nsString;
/*
Declare the enum list using the magic of preprocessing
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a property string, return the enum value
static nsCSSProperty LookupProperty(const nsStr& aProperty);
static nsCSSProperty LookupProperty(const nsString& aProperty);
static nsCSSProperty LookupProperty(const nsCString& aProperty);
// Given a property enum, get the string value
static const nsCString& GetStringValue(nsCSSProperty aProperty);

View File

@@ -114,7 +114,7 @@ nsCSSKeywords::ReleaseTable(void)
nsCSSKeyword
nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
nsCSSKeywords::LookupKeyword(const nsCString& aKeyword)
{
NS_ASSERTION(gKeywordTree, "no lookup table, needs addref");
if (gKeywordTree) {
@@ -128,6 +128,12 @@ nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
return eCSSKeyword_UNKNOWN;
}
nsCSSKeyword
nsCSSKeywords::LookupKeyword(const nsString& aKeyword) {
nsCAutoString theKeyword(aKeyword);
return LookupKeyword(theKeyword);
}
const nsCString&
nsCSSKeywords::GetStringValue(nsCSSKeyword aKeyword)

View File

@@ -119,7 +119,7 @@ nsCSSProps::ReleaseTable(void)
nsCSSProperty
nsCSSProps::LookupProperty(const nsStr& aProperty)
nsCSSProps::LookupProperty(const nsCString& aProperty)
{
NS_ASSERTION(gPropertyTree, "no lookup table, needs addref");
if (gPropertyTree) {
@@ -134,6 +134,13 @@ nsCSSProps::LookupProperty(const nsStr& aProperty)
}
nsCSSProperty
nsCSSProps::LookupProperty(const nsString& aProperty) {
nsCAutoString theProp(aProperty);
return LookupProperty(theProp);
}
const nsCString&
nsCSSProps::GetStringValue(nsCSSProperty aProperty)
{

View File

@@ -114,7 +114,7 @@ nsCSSKeywords::ReleaseTable(void)
nsCSSKeyword
nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
nsCSSKeywords::LookupKeyword(const nsCString& aKeyword)
{
NS_ASSERTION(gKeywordTree, "no lookup table, needs addref");
if (gKeywordTree) {
@@ -128,6 +128,12 @@ nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
return eCSSKeyword_UNKNOWN;
}
nsCSSKeyword
nsCSSKeywords::LookupKeyword(const nsString& aKeyword) {
nsCAutoString theKeyword(aKeyword);
return LookupKeyword(theKeyword);
}
const nsCString&
nsCSSKeywords::GetStringValue(nsCSSKeyword aKeyword)

View File

@@ -24,7 +24,7 @@
#include "nslayout.h"
struct nsStr;
class nsString;
class nsCString;
/*
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a keyword string, return the enum value
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
// Given a keyword enum, get the string value
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);

View File

@@ -119,7 +119,7 @@ nsCSSProps::ReleaseTable(void)
nsCSSProperty
nsCSSProps::LookupProperty(const nsStr& aProperty)
nsCSSProps::LookupProperty(const nsCString& aProperty)
{
NS_ASSERTION(gPropertyTree, "no lookup table, needs addref");
if (gPropertyTree) {
@@ -134,6 +134,13 @@ nsCSSProps::LookupProperty(const nsStr& aProperty)
}
nsCSSProperty
nsCSSProps::LookupProperty(const nsString& aProperty) {
nsCAutoString theProp(aProperty);
return LookupProperty(theProp);
}
const nsCString&
nsCSSProps::GetStringValue(nsCSSProperty aProperty)
{

View File

@@ -24,8 +24,8 @@
#include "nslayout.h"
struct nsStr;
class nsCString;
class nsString;
/*
Declare the enum list using the magic of preprocessing
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a property string, return the enum value
static nsCSSProperty LookupProperty(const nsStr& aProperty);
static nsCSSProperty LookupProperty(const nsString& aProperty);
static nsCSSProperty LookupProperty(const nsCString& aProperty);
// Given a property enum, get the string value
static const nsCString& GetStringValue(nsCSSProperty aProperty);

View File

@@ -114,7 +114,7 @@ nsCSSKeywords::ReleaseTable(void)
nsCSSKeyword
nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
nsCSSKeywords::LookupKeyword(const nsCString& aKeyword)
{
NS_ASSERTION(gKeywordTree, "no lookup table, needs addref");
if (gKeywordTree) {
@@ -128,6 +128,12 @@ nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
return eCSSKeyword_UNKNOWN;
}
nsCSSKeyword
nsCSSKeywords::LookupKeyword(const nsString& aKeyword) {
nsCAutoString theKeyword(aKeyword);
return LookupKeyword(theKeyword);
}
const nsCString&
nsCSSKeywords::GetStringValue(nsCSSKeyword aKeyword)

View File

@@ -24,7 +24,7 @@
#include "nslayout.h"
struct nsStr;
class nsString;
class nsCString;
/*
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a keyword string, return the enum value
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
// Given a keyword enum, get the string value
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);

View File

@@ -119,7 +119,7 @@ nsCSSProps::ReleaseTable(void)
nsCSSProperty
nsCSSProps::LookupProperty(const nsStr& aProperty)
nsCSSProps::LookupProperty(const nsCString& aProperty)
{
NS_ASSERTION(gPropertyTree, "no lookup table, needs addref");
if (gPropertyTree) {
@@ -134,6 +134,13 @@ nsCSSProps::LookupProperty(const nsStr& aProperty)
}
nsCSSProperty
nsCSSProps::LookupProperty(const nsString& aProperty) {
nsCAutoString theProp(aProperty);
return LookupProperty(theProp);
}
const nsCString&
nsCSSProps::GetStringValue(nsCSSProperty aProperty)
{

View File

@@ -24,8 +24,8 @@
#include "nslayout.h"
struct nsStr;
class nsCString;
class nsString;
/*
Declare the enum list using the magic of preprocessing
@@ -49,7 +49,8 @@ public:
static void ReleaseTable(void);
// Given a property string, return the enum value
static nsCSSProperty LookupProperty(const nsStr& aProperty);
static nsCSSProperty LookupProperty(const nsString& aProperty);
static nsCSSProperty LookupProperty(const nsCString& aProperty);
// Given a property enum, get the string value
static const nsCString& GetStringValue(nsCSSProperty aProperty);