Added private unimplemented signatures of |...WithConversion| to prevent accidents where I should have used the non-converting form. Removed |AppendWithConversion|s that stood in for |AppendInt| and |AppendFloat|.

This commit is contained in:
scc@netscape.com
2000-04-17 11:06:41 +00:00
parent 268ab3a93f
commit b47386ee11
6 changed files with 48 additions and 18 deletions

View File

@@ -474,9 +474,6 @@ public:
nsCString& Append(PRInt32 aInteger,PRInt32 aRadix=10) {AppendInt(aInteger,aRadix); return *this;}
nsCString& Append(float aFloat) {AppendFloat(aFloat); return *this;}
void AppendWithConversion(PRInt32 aInteger, PRInt32 aRadix=10) {AppendInt(aInteger,aRadix);}
void AppendWithConversion(float aFloat) {AppendFloat(aFloat);}
/**
* Here's a bunch of methods that append varying types...
* @param various...
@@ -775,6 +772,13 @@ public:
static void Recycle(nsCString* aString);
static nsCString* CreateString(void);
private:
// NOT TO BE IMPLEMENTED
// these signatures help clients not accidentally call the wrong thing helped by C++ automatic integral promotion
void AssignWithConversion( char );
void AssignWithConversion( const char*, PRInt32=-1 );
void AppendWithConversion( char );
void InsertWithConversion( char, PRUint32 );
};
#if 0//def NEW_STRING_APIS