removed calls to deprecated stringm ethods

This commit is contained in:
rickg%netscape.com 2000-03-12 11:12:57 +00:00
Родитель 7c4f6b3293
Коммит ae0bf903bb
2 изменённых файлов: 21 добавлений и 2 удалений

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

@ -176,7 +176,7 @@ nsMathMLOperators::ReleaseTable(void)
PRBool
nsMathMLOperators::LookupOperator(const nsStr& aOperator,
nsMathMLOperators::LookupOperator(const nsString& aOperator,
const nsOperatorFlags aForm,
nsOperatorFlags* aFlags,
float* aLeftSpace,
@ -217,6 +217,19 @@ nsMathMLOperators::LookupOperator(const nsStr& aOperator,
}
PRBool
nsMathMLOperators::LookupOperator(const nsCString& aOperator,
const nsOperatorFlags aForm,
nsOperatorFlags* aFlags,
float* aLeftSpace,
float* aRightSpace)
{
nsAutoString theOperator(aOperator);
return LookupOperator(theOperator,aForm,aFlags,aLeftSpace,aRightSpace);
}
#if 0
// DEBUG
// BEGIN TEST CODE:

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

@ -116,7 +116,13 @@ public:
// output parameter aFlags to know exactly under which form the operator was
// found in the operator dictionary.
static PRBool LookupOperator(const nsStr& aOperator,
static PRBool LookupOperator(const nsString& aOperator,
const nsOperatorFlags aForm,
nsOperatorFlags* aFlags,
float* aLeftSpace,
float* aRightSpace);
static PRBool LookupOperator(const nsCString& aOperator,
const nsOperatorFlags aForm,
nsOperatorFlags* aFlags,
float* aLeftSpace,